aws-cloudformation / aws-cloudformation/cloudformation-cli
Accessing IAM Roles with Contract Tests
- Vorherrschende Sprache
- Python
- Sterne
- 336
- Forks
- 172
- Ø Merge
- 3 T. 5 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Hi, my current resource AWS::DataSync::LocationS3 requires a property 'BucketAccessRoleArn', which is an IAM role for an S3 bucket. I believe this forces the DataSync API to use IAM API's in order to access the role, which gives an "Error occurred while getting IAM Role" for contract tests.
I believe the tests currently get temporary credentials in the same way as invoking "aws sts get-session-token". But these temporary credentials do not allow calls for IAM API operations as stated here in the 'Permissions' section: https://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html
I am able to get SAM testing to work by using MFA authentication in the request: "aws sts get-session-token --serial number --token-code ", but I am unable to do something similar for contract tests.
Beitragsleitfaden
Rechercherichtung
Es werden keine Implementierungsdateien genannt. Beginne damit, den Anmeldeinformationsfluss des contract-test nachzustellen, und vergleiche ihn mit dem SAM testing und dem im Issue beschriebenen Verhalten von AWS STS get-session-token. Als erledigt gilt die Aufgabe, wenn contract tests auf die in BucketAccessRoleArn referenzierte IAM role zugreifen können, ohne dass der IAM role-Fehler auftritt, einschließlich des erforderlichen MFA-Szenarios.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws
- Bereich
- authorization, cloud, testing-qa
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100