#terraform-aws-modules - November 2019

November 2019
Sharanya
Sharanyaabout 7 years ago
Hey Guys - Quick Question --- if any one has every come across this "Is there any way we can make our S3 bucket Private and then Cloudfront provides - URL , Which can be viewed from this Private S3 Bucket" ?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
Yes see our terraform module for hosting an s3 website
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
Oh with cloud front.. we have something for that too
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
I think that does what you want
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
(Not a github.com/terraform-aws-module though which is what this channel is for)
navdeep
navdeepabout 7 years ago
Hey guys, I have been using cloudposse for getting our emr cluster up, though I am able to get my cluster up in our vpc , but our autoscaling policy is unable get triggered with the error Failed to provision the AutoScaling policy: Unable to assume IAM role: arn:aws:iam::216727*****:role/emr-stage-dataorc-emr-ec2-autoscaling , though in the module <https://github.com/cloudposse/terraform-aws-emr-cluster> i can see most of the assume policy requirement given, any direction I can look up or something I am missing
Yuriy
Yuriyalmost 7 years ago
Hi! I use this module https://github.com/cloudposse/terraform-aws-dynamic-subnets and can't figure out how to allow connections from public subnets to private ones (I am setting up bastion host) - what am I missing?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Make sure they are all in the same route table
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
Make sure your bastion’s security group permits the relative networks
Gabe
Gabealmost 7 years ago
have you guys run into any issues with this release of terraform-aws-vpc? https://github.com/cloudposse/terraform-aws-vpc/releases/tag/0.8.0
Gabe
Gabealmost 7 years ago
when we upgraded to TF 12 and applied this module it removed all of our default security group rules, which included rules to allow egress traffic
Gabe
Gabealmost 7 years ago
according to the docs
When Terraform first adopts the Default Security Group, it immediately removes all ingress and egress rules in the Security Group. It then proceeds to create any rules specified in the configuration. This step is required so that only the rules specified in the configuration are created.
Gabe
Gabealmost 7 years ago
I understand best practice is to not use the default security group, but in our case we have to because of legacy infrastructure
Gabe
Gabealmost 7 years ago
seems like this should have been a 1.0.0 release instead of a minor release with some documentation in the readme describing how the new version will remove any SG rules on your existing default SG
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
We don’t have a single 1.0 module :-)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
In semver pre-1.0 has a special meaning
Gabe
Gabealmost 7 years ago
ahhhh okay that makes sense
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
The change came about because we are working to achieve compliance with CIS Benchmarks
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
The default group was flagged
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 7 years ago
that needs to be fixed, maybe by adding default_security_group_enabled flag
Gabe
Gabealmost 7 years ago
i also don’t think the way terraform implemented this is very intuitive either … this is the only case i’ve seen where they automatically import the resource and remove things from it
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)almost 7 years ago
it’s better to specify default egress in any SG
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
But I don’t think related
Gabe
Gabealmost 7 years ago
agreed, in our case we had used a previous version of the module so it implicitly created the egress, so when we updated terraform removed it
Saichovsky
Saichovskyalmost 7 years ago(edited)
Greetings people
Saichovsky
Saichovskyalmost 7 years ago
I’m new here with a burning question on terraform <> AWS
Saichovsky
Saichovskyalmost 7 years ago
resource "aws_kinesis_analytics_application" "app" {
  name = var.analytics_app_name
  tags = local.tags

  // TODO: need to make inputs & outputs dynamic -- cater for cases of multiple columns, e.t.c.
  //  inputs {
  //    name_prefix = ""
  //    "schema" {
  //      "record_columns" {
  //        name = ""
  //        sql_type = ""
  //      }
  //      "record_format" {}
  //    }
  //  }
  //  outputs {
  //    name = ""
  //    "schema" {}
  //  }
}


Here’s my quandary
Saichovsky
Saichovskyalmost 7 years ago
number of columns is not fixed
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)almost 7 years ago
(perhaps try #terraform as it doesn't seem like this is related to https://github.com/terraform-aws-modules)
Alex Siegman
Alex Siegmanalmost 7 years ago(edited)
Anyone have a good base module for a redshift cluster? i could have sworn cloudposse had one, but i'm not seeing it in their github
Slackbot
Slackbotalmost 7 years ago
This message was deleted.