Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Merge pull request kabisa#1 from kabisa/release/1.2
Browse files Browse the repository at this point in the history
ARN -> name
  • Loading branch information
JoostSaanen authored Aug 7, 2019
2 parents ebaae32 + f4827ec commit 745bdf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resource "aws_iam_role_policy_attachment" "ec2_role_ssm_policy_attachment" {
role = "${var.ec2_instance_role_arn}"
role = "${var.ec2_instance_role_name}"
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM"
}

resource "aws_iam_role_policy" "ssm_bucket_policy" {
name = "${var.ssm_s3_policy_name}"
role = "${var.ec2_instance_role_arn}"
role = "${var.ec2_instance_role_name}"

policy = <<EOF
{
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "ssm_s3_policy_name" {
default = "ssm_s3_policy"
}

variable "ec2_instance_role_arn" {
variable "ec2_instance_role_name" {
default = "the instance role which is attached to the instance profile"
}

Expand Down

0 comments on commit 745bdf4

Please sign in to comment.