Skip to content
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

TFC AWS permission updates required for cluster infrastructure #1020

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

marcpomfret
Copy link
Contributor

@marcpomfret marcpomfret commented Nov 22, 2023

Updates needed to terraform-cloud-run policy to allow terraform cloud to deploy the cluster-infrastructure workspaces

Added the following to allow
acm
elasticfilesystem
secretsmanager

Provider removed from deny as need to access GetOpenIDConnectProvider

Consolidation of manual additions

apigateway & lambda had been added to Allow policy in production manually at the same time as the policy had been created but not reflected in the code here so have added those also and removed PassRole from Deny for the same reason.

https://trello.com/c/Xfn52Fg4/3322-automate-terraform-plan-review-apply-and-drift-detection-terraform-cloud

@marcpomfret marcpomfret force-pushed the marc/tfc-aws-iam-updates branch from db2c8ed to c1ec43d Compare November 28, 2023 19:21
@marcpomfret marcpomfret marked this pull request as ready for review November 28, 2023 19:21
@marcpomfret marcpomfret requested review from theseanything, sengi and samsimpson1 and removed request for theseanything November 28, 2023 19:22
Copy link
Contributor

@sengi sengi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for going through these! LGTM

Comment on lines -89 to +92
"iam:PassRole"
"iam:CreateServiceLinkedRole"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly note to self: at some point in the near future we should get to the bottom of exactly when/whether PassRole and CreateServiceLinkedRole are needed 🙃 I'm fine with this for now though. (We'd need to spend a bunch of time painstakingly testing turnup-from-scratch in the test account and seeing which permissions it breaks without — and we've more impactful security improvements to make for now!)

Copy link
Contributor

@sengi sengi Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw I'm pretty sure at least one of them is needed at cluster turnup. CreateServiceLinkedRole also definitely used to be, but I dunno if it still is (last time I ran the cluster turnup TF from scratch was about 3 EKS versions ago so who knows 😄)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyway def not a problem for right now :)

@marcpomfret marcpomfret merged commit c2d8e95 into main Nov 29, 2023
1 check passed
@marcpomfret marcpomfret deleted the marc/tfc-aws-iam-updates branch November 29, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants