Repository navigation
Add an IAM OIDC provider for the Entra tenant - #241
Merged
Merged
Conversation
Contributor
|
Terraform plan in terraform Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# aws_iam_openid_connect_provider.entra[0] will be created
+ resource "aws_iam_openid_connect_provider" "entra" {
+ arn = (known after apply)
+ client_id_list = [
+ "bb422364-5f6c-4950-bc83-170463db0a53",
]
+ id = (known after apply)
+ tags_all = {
+ "managed-by" = "terraform-devops-security"
}
+ thumbprint_list = (known after apply)
+ url = "https://sts.windows.net/8d4de52f-0fe7-43d5-a950-f268f4a09ead/"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ entra_oidc_provider_arn = (known after apply)✅ Plan applied in Apply Terraform changes on merge #66 Outputsentra_oidc_provider_arn = "arn:aws:iam::035866691871:oidc-provider/sts.windows.net/8d4de52f-0fe7-43d5-a950-f268f4a09ead/"
incubator_azure_ci_client_ids = {
apply = "3ed75320-4929-4cc2-bd82-7b25f50c2577"
plan = "47e2bdcb-3c85-4d59-be12-869552bba440"
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #236.
Adds
terraform/aws-entra-oidc-provider.tf: an IAM OIDC provider for Hack for LA's Entra tenant, so incubator apps on Azure can assume AWS roles through their credential sidecar (hackforla/incubator#312).https://sts.windows.net/8d4de52f-0fe7-43d5-a950-f268f4a09ead/, the managed identity token'sissexactly as recorded in Research: Test whether an App Service sidecar can get a managed identity token incubator#307 (trailing slash included).client_id_list: the client ID of incubator'sincubator-aws-credential-audienceapp registration (Create the shared Azure platform: App Service plan and container registry incubator#310), hard-coded since this repo can't read incubator's state.iam_only, likecloudtrail.tf, since it trusts Hack for LA's tenant only. Outputs its ARN.Expected plan: 1 to add, 0 to change, 0 to destroy. A local read-only plan against production state matched.
After merge: confirm the provider's URL and client ID with
aws iam list-open-id-connect-providers/get-open-id-connect-provider.