From 7e98c4c7c151809a4eb8ea8f27588ff321f045cc Mon Sep 17 00:00:00 2001 From: theprashantyadav Date: Tue, 18 Jul 2023 20:45:08 +0530 Subject: [PATCH] feat: add prefix list id argument --- .gitignore | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++- Makefile | 1 - README.yaml | 36 ++++----- 3 files changed, 223 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index dfee340..cc1c6b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,210 @@ # ignored files +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* +### Eclipse template + +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet +### Windows template +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk +### Ansible template +*.retry +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk +### Archives template +# It's better to unpack these files and commit the raw source because +# git has its own built in compression methods. +*.7z +*.jar +*.rar +*.zip +*.gz +*.tgz +*.bzip +*.bz2 +*.xz +*.lzma +*.cab + +# Packing-only formats +*.iso +*.tar + +# Package management formats +*.dmg +*.xpi +*.gem +*.egg +*.deb +*.rpm +*.msi +*.msm +*.msp +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +/.idea/ +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries + +# CMake +cmake-build-debug/ + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ +# User-specific stuff: +.idea/* +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# TFstste +*.tfstate* + +deployment/_logs/ansible-log.json +deployment/_logs/ansible-log.log +deployment/_logs/facts/* +deployment/_logs/retry/* +_app/* +ansible-log.json +.terraform +terraform.tfstate + *.tfstate *.tfstate.backup -.terraform -.idea *.iml *.terraform.lock.hcl +*.lock.hcl diff --git a/Makefile b/Makefile index f0eef15..073c5aa 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,2 @@ export GENIE_PATH ?= $(shell 'pwd')/../../../genie - include $(GENIE_PATH)/Makefile diff --git a/README.yaml b/README.yaml index ad9b3bf..771e604 100644 --- a/README.yaml +++ b/README.yaml @@ -41,25 +41,25 @@ usage: |- environment = "test" label_order = ["name", "environment"] - vpc_id = module.vpc.vpc_id - new_enable_security_group = true - allowed_ip = ["172.16.0.0/16", "10.0.0.0/16"] - allowed_ports = [22, 27017] - security_groups = [] - max_entries = 5 - prefix_list_enabled = true - prefix_list_id = [] - entry = [ - { - cidr = "10.0.0.0/16" - description = "VPC CIDR" - }, - { - cidr = "10.10.0.0/24" - description = "VPC CIDR" + vpc_id = module.vpc.vpc_id + new_enable_security_group = true + allowed_ip = ["172.16.0.0/16", "10.0.0.0/16"] + allowed_ports = [22, 27017] + security_groups = [] + max_entries = 5 + prefix_list_enabled = true + prefix_list_id = [] + entry = [ + { + cidr = "10.0.0.0/16" + description = "VPC CIDR" + }, + { + cidr = "10.10.0.0/24" + description = "VPC CIDR" + } + ] } - ] -} ``` ### NEW_SECURITY_GROUP_WITH_EGRESS module "security_group" {