Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abought committed Apr 25, 2024
2 parents 406581f + 5a84913 commit dc8ba3f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ data "aws_region" "current" {}

module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.1.0"
version = "5.5.3"

name = "imputation-example-vpc"
cidr = "10.120.0.0/16"
Expand Down
5 changes: 3 additions & 2 deletions modules/imputation-iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "aws_iam_role" "emr" {

resource "aws_iam_role_policy_attachment" "emr" {
role = aws_iam_role.emr.name
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceRole"
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEMRServicePolicy_v2"
}

resource "aws_iam_role" "ec2" {
Expand All @@ -61,7 +61,8 @@ resource "aws_iam_role" "ec2" {
}

resource "aws_iam_role_policy_attachment" "ec2" {
role = aws_iam_role.ec2.name
role = aws_iam_role.ec2.name
# NOTE: Deprecated, but with no replacement policy; we'd need to develop our own
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonElasticMapReduceforEC2Role"
}

Expand Down
2 changes: 1 addition & 1 deletion modules/imputation-iam/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/imputation-lb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ variable "port" {

variable "ssl_policy" {
description = "The name of the SSL Policy for the listener"
default = "ELBSecurityPolicy-2016-08"
default = "ELBSecurityPolicy-TLS13-1-2-2021-06"
type = string
}

Expand Down
2 changes: 1 addition & 1 deletion modules/imputation-lb/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/imputation-security-group-rules/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 5.0"
}
}

Expand Down
6 changes: 4 additions & 2 deletions modules/imputation-server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ variable "ec2_iam_role_tags" {

variable "emr_cluster_tags" {
description = "Tags to be applied to the EMR cluster"
default = {}
type = map(string)
default = {
"for-use-with-amazon-emr-managed-policies" : true
}
type = map(string)
}

variable "emr_iam_role_tags" {
Expand Down
2 changes: 1 addition & 1 deletion modules/imputation-server/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 5.0"
}
}

Expand Down

0 comments on commit dc8ba3f

Please sign in to comment.