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

Update task IAM role model to support Single Region Accounts #4039

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

Yiyuanzzz
Copy link
Contributor

@Yiyuanzzz Yiyuanzzz commented Nov 20, 2023

Summary

Update task IAM role model to support Single Region Accounts

Implementation details

Update IAM role credentials model passed from ACS to the agent to include the CredentialScope field in ecs-agent/credentials/manager.go and existing tests. The updated field will be passed through from the agent to the customer application container via the ecs-agent container credentials handler in /ecs-agent/tmds/handlers/v1/credentials_handler.go. CredentialScope will be return as part of JSON response by credentials handler along with other credentials.

Testing

Unit, integration, and functional tests.
New tests cover the changes: no

Description for the changelog

Update task IAM role model

Does this PR include breaking model changes? If so, Have you added transformation functions?

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Yiyuanzzz Yiyuanzzz requested a review from a team as a code owner November 20, 2023 19:18
@Yiyuanzzz Yiyuanzzz changed the title [WIP]Sra Update task IAM role model to support Single Region Accounts Nov 21, 2023
Realmonia
Realmonia previously approved these changes Nov 21, 2023
@@ -95,7 +95,8 @@ const (
"expiration": "2016-03-25T06:17:19.318+0000",
"roleArn": "r1",
"secretAccessKey": "secretAccessKey",
"sessionToken": "token"
"sessionToken": "token",
"credentialScope": "scope"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The indentation seems correct from my end, don't know why it looks weird here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, thanks

@Yiyuanzzz Yiyuanzzz changed the base branch from dev to feature/SRA November 21, 2023 21:15
@Yiyuanzzz Yiyuanzzz dismissed Realmonia’s stale review November 21, 2023 21:15

The base branch was changed.

@Yiyuanzzz Yiyuanzzz changed the base branch from feature/SRA to dev November 21, 2023 21:16
@Yiyuanzzz Yiyuanzzz changed the base branch from dev to feature/SingleRegionAccounts November 21, 2023 21:24
@Yiyuanzzz Yiyuanzzz changed the base branch from feature/SingleRegionAccounts to feature/single-region-accounts November 27, 2023 20:14
@Yiyuanzzz Yiyuanzzz merged commit cf1c792 into aws:feature/single-region-accounts Nov 27, 2023
36 checks passed
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.

4 participants