-
-
Notifications
You must be signed in to change notification settings - Fork 13
Issue146 OIDC plan april #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3c42848
ca2eae6
d62db78
401f503
dabde0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the name of the file should not be specific to secrets, but all of the 'other' things that TF plan needs other than read only |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "Version": "2012-10-17", | ||
| "Statement": [ | ||
| { | ||
| "Sid": "AllowReadSpecificSecretsForTerraformPlan", | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "secretsmanager:GetSecretValue" | ||
| ], | ||
| "Resource": [ | ||
| "arn:aws:secretsmanager:us-west-2:035866691871:secret:home-unite-us-cognito-client*", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be: |
||
| "arn:aws:secretsmanager:us-west-2:035866691871:secret:home-unite-us-google-clientid*", | ||
| "arn:aws:secretsmanager:us-west-2:035866691871:secret:home-unite-us-google-secret*" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,13 +40,17 @@ resource "aws_iam_role" "incubator_tf_plan" { | |
| } | ||
|
|
||
| resource "aws_iam_role_policy_attachment" "incubator_tf_plan_readonly" { | ||
| role = aws_iam_role.incubator_tf_plan.name | ||
| role = aws_iam_role.incubator_tf_plan.name | ||
| policy_arn = "arn:aws:iam::aws:policy/ReadOnlyAccess" | ||
| } | ||
|
Comment on lines
+42
to
+45
|
||
|
|
||
| resource "aws_iam_role_policy_attachment" "incubator_tf_plan_secrets_read" { | ||
| role = aws_iam_role.incubator_tf_plan.name | ||
| policy_arn = module.aws_custom_policies.policy_arns["IncubatorTfPlanSecretsRead"] | ||
| } | ||
|
|
||
| resource "aws_iam_role" "incubator_tf_apply" { | ||
| name = "incubator-tf-apply" | ||
|
|
||
| assume_role_policy = jsonencode({ | ||
| Version = "2012-10-17" | ||
| Statement = [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description mentions a new policy file
incubator-tf-plan-secrets-read-policy.tf, but the change here referencesincubator-tf-plan-secrets-read-policy.json. If the PR description is outdated/typo, consider updating it to match the actual file name/type to avoid confusion for reviewers and future maintainers.