Commit 00aa7aa2 authored by Michael Kennedy's avatar Michael Kennedy 🎱
Browse files

added git ignore and more f5-sgw-ts

parent 5d3e00c7
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+156 −0
Original line number Diff line number Diff line

# Created by https://www.gitignore.io/api/macos,pycharm,terraform,terragrunt
# Edit at https://www.gitignore.io/?templates=macos,pycharm,terraform,terragrunt

### macOS ###
# 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

### PyCharm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn.  Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PyCharm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/**/sonarlint/

# SonarQube Plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator/

### Terraform ###
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

### Terragrunt ###
# terragrunt cache directories
**/.terragrunt-cache/*

# End of https://www.gitignore.io/api/macos,pycharm,terraform,terragrunt

.idea/workspace.xml

0 → 100644
+1769 −0

File added.

Preview size limit exceeded, changes collapsed.

+18 −23
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ resource "random_password" "password" {
# Create Secret Store and Store BIG-IP Password
#
resource "aws_secretsmanager_secret" "bigip" {
  name = format("%s-bigip-secret-%s", var.prefix, random_id.id.hex)
  name = format("%s-bigip-secret-%s", var.prefix, var.random.hex)
}
resource "aws_secretsmanager_secret_version" "bigip-pwd" {
  secret_id     = aws_secretsmanager_secret.bigip.id
@@ -31,12 +31,12 @@ module "bigip" {
  prefix = format(
    "%s-bigip-3-nic_with_new_vpc-%s",
    var.prefix,
    random_id.id.hex
    var.random.hex
  )
  aws_secretmanager_secret_id = aws_secretsmanager_secret.bigip.id
  f5_ami_search_name          = "F5 BIGIP-15.* PAYG-Best 200Mbps*"
  f5_instance_count           = length(var.azs)
  ec2_key_name                    = var.ec2_key_name
  ec2_key_name                = var.keyname
  ec2_instance_type           = "c4.xlarge"
  DO_URL                      = "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.8.0/f5-declarative-onboarding-1.8.0-2.noarch.rpm"

@@ -57,9 +57,9 @@ module "bigip" {
  ]


  vpc_public_subnet_ids  = module.vpc.public_subnets
  vpc_private_subnet_ids = module.vpc.private_subnets
  vpc_mgmt_subnet_ids    = module.vpc.database_subnets
  vpc_public_subnet_ids  = var.public_subnets
  vpc_private_subnet_ids = var.private_subnets
  vpc_mgmt_subnet_ids    = var.database_subnets
}


@@ -69,9 +69,9 @@ module "bigip" {
module "bigip_sg" {
  source = "terraform-aws-modules/security-group/aws"

  name        = format("%s-bigip-%s", var.prefix, random_id.id.hex)
  name        = format("%s-bigip-%s", var.prefix, var.random.hex)
  description = "Security group for BIG-IP Demo"
  vpc_id      = module.vpc.vpc_id
  vpc_id      = var.vpcid

  ingress_cidr_blocks = [var.allowed_app_cidr]
  ingress_rules       = ["http-80-tcp", "https-443-tcp"]
@@ -94,9 +94,9 @@ module "bigip_sg" {
module "bigip_mgmt_sg" {
  source = "terraform-aws-modules/security-group/aws"

  name        = format("%s-bigip-mgmt-%s", var.prefix, random_id.id.hex)
  name        = format("%s-bigip-mgmt-%s", var.prefix, var.random.hex)
  description = "Security group for BIG-IP Demo"
  vpc_id      = module.vpc.vpc_id
  vpc_id      = var.vpcid

  ingress_cidr_blocks = [var.allowed_mgmt_cidr]
  ingress_rules       = ["https-443-tcp", "https-8443-tcp", "ssh-tcp"]
@@ -112,8 +112,3 @@ module "bigip_mgmt_sg" {
  egress_cidr_blocks = ["0.0.0.0/0"]
  egress_rules       = ["all-all"]
}
 No newline at end of file

data "aws_network_interface" "bar" {
  count = length(module.bigip.public_nic_ids)
  id = module.bigip.public_nic_ids[count.index]
}
 No newline at end of file
+15 −0
Original line number Diff line number Diff line
output "public_nic_ids" {
  value = module.bigip.public_nic_ids
}

output "mgmt_addresses" {
  value = module.bigip.mgmt_addresses
}

output "mgmt_public_dns" {
  value = module.bigip.mgmt_public_dns
}

output "private_addresses" {
  value = module.bigip.private_addresses
}
 No newline at end of file
+47 −0
Original line number Diff line number Diff line
variable "cidr" {

}

variable "prefix" {

}

variable "public_subnets" {

}

variable "private_subnets" {

}

variable "database_subnets" {

}

variable "azs" {

}

variable "env" {

}

variable "random" {

}

variable "keyname" {

}

variable "vpcid" {

}

variable "allowed_mgmt_cidr" {
  default = "0.0.0.0/0"
}

variable "allowed_app_cidr" {
  default = "0.0.0.0/0"
}
 No newline at end of file
Loading