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

Manage OIDC provider outside of terraform #533

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Manage OIDC provider outside of terraform #533

merged 1 commit into from
Dec 21, 2023

Conversation

lorenyu
Copy link
Contributor

@lorenyu lorenyu commented Dec 21, 2023

Ticket

Resolves #531

Changes

see title

Context for reviewers

see ticket

Testing

This change was pulled directly from somewhere else (it was originally a PR authored by @anybodys reviewed by @daphnegold) so it's already been tested there. And it also should be covered by CI.

⚠️ Migration notes

This change moves the OIDC provider to be managed outside of Terraform. Thus, to prevent Terraform from destroying that resource, you need to remove the OIDC provider from the Terraform state file for each of your accounts in infra/accounts. Run the following commands for each AWS account:

./bin/terraform-init.sh infra/accounts $(./bin/current-account-config-name.sh)
terraform -chdir=infra/accounts state rm module.auth_github_actions.aws_iam_openid_connect_provider.github

Copy link
Contributor

@anybodys anybodys left a comment

Choose a reason for hiding this comment

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

🐨

@lorenyu lorenyu merged commit 7f2a842 into main Dec 21, 2023
9 checks passed
@lorenyu lorenyu deleted the lorenyu/moveoidc branch December 21, 2023 23:44
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.

Create GitHub OIDC provider outside of terraform
2 participants