Skip to content

Commit

Permalink
Update elasticbeanstalk.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlippold authored Mar 1, 2024
1 parent ac841a3 commit c823236
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/aws/elasticbeanstalk.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,19 @@ resource "aws_elastic_beanstalk_environment" "hydroserver_django_env" {
value = ""
}
}

# ------------------------------------------------ #
# HydroServer Elastic Beanstalk Role Policies #
# ------------------------------------------------ #

resource "aws_iam_role_policy_attachment" "s3_policy_attachment" {
role = "aws-elasticbeanstalk-ec2-role-hydroserver-${var.instance}"
policy_arn = "arn:aws:iam::aws:policy/AmazonS3FullAccess"
}

resource "aws_iam_role_policy_attachment" "ses_policy_attachment" {
role = "aws-elasticbeanstalk-ec2-role-hydroserver-${var.instance}"
policy_arn = "arn:aws:iam::aws:policy/AmazonSESFullAccess"
}


0 comments on commit c823236

Please sign in to comment.