Skip to content

Commit

Permalink
rename tas -> pas
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Alford <[email protected]>
  • Loading branch information
jtarchie authored and anEXPer committed Aug 24, 2020
1 parent 7754c91 commit 8a49fcd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion aws/ops-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ data "aws_iam_policy_document" "ops-manager" {
actions = ["iam:PassRole"]
resources = [
aws_iam_role.ops-manager.arn,
aws_iam_role.tas-blobstore.arn,
aws_iam_role.pas-blobstore.arn,
aws_iam_role.pks-master.arn,
aws_iam_role.pks-worker.arn,
]
Expand Down
2 changes: 1 addition & 1 deletion aws/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ locals {
droplets_bucket_name = aws_s3_bucket.droplets-bucket.bucket
packages_bucket_name = aws_s3_bucket.packages-bucket.bucket
resources_bucket_name = aws_s3_bucket.resources-bucket.bucket
tas_blobstore_iam_instance_profile_name = aws_iam_instance_profile.tas-blobstore.name
pas_blobstore_iam_instance_profile_name = aws_iam_instance_profile.pas-blobstore.name

nat_security_group_id = aws_security_group.nat.id
nat_security_group_name = aws_security_group.nat.name
Expand Down
26 changes: 13 additions & 13 deletions aws/tas-iam.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "tas-blobstore-policy" {
data "aws_iam_policy_document" "pas-blobstore-policy" {
statement {
sid = "TasBlobstorePolicy"
sid = "PasBlobstorePolicy"
effect = "Allow"
actions = ["s3:*"]
resources = [
Expand All @@ -16,13 +16,13 @@ data "aws_iam_policy_document" "tas-blobstore-policy" {
}
}

resource "aws_iam_policy" "tas-blobstore" {
name = "${var.environment_name}-tas-blobstore-policy"
policy = data.aws_iam_policy_document.tas-blobstore-policy.json
resource "aws_iam_policy" "pas-blobstore" {
name = "${var.environment_name}-pas-blobstore-policy"
policy = data.aws_iam_policy_document.pas-blobstore-policy.json
}

resource "aws_iam_role" "tas-blobstore" {
name = "${var.environment_name}-tas-blobstore"
resource "aws_iam_role" "pas-blobstore" {
name = "${var.environment_name}-pas-blobstore"

lifecycle {
create_before_destroy = true
Expand All @@ -48,14 +48,14 @@ resource "aws_iam_role" "tas-blobstore" {
EOF
}

resource "aws_iam_role_policy_attachment" "tas-blobstore" {
role = aws_iam_role.tas-blobstore.name
policy_arn = aws_iam_policy.tas-blobstore.arn
resource "aws_iam_role_policy_attachment" "pas-blobstore" {
role = aws_iam_role.pas-blobstore.name
policy_arn = aws_iam_policy.pas-blobstore.arn
}

resource "aws_iam_instance_profile" "tas-blobstore" {
name = "${var.environment_name}-tas-blobstore"
role = aws_iam_role.tas-blobstore.name
resource "aws_iam_instance_profile" "pas-blobstore" {
name = "${var.environment_name}-pas-blobstore"
role = aws_iam_role.pas-blobstore.name

lifecycle {
ignore_changes = [name]
Expand Down

0 comments on commit 8a49fcd

Please sign in to comment.