aws-cloudformation / aws-cloudformation/cloudformation-cli
Accessing IAM Roles with Contract Tests
- Lingua principale
- Python
- Stelle
- 336
- Fork
- 172
- Merge medio
- 3g 5m
- PR unite (30g)
- 3
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Non vengono nominati file di implementazione. Inizia riproducendo il flusso delle credenziali di contract-test e confrontalo con SAM testing e con il comportamento di AWS STS get-session-token descritto nell’issue. Il lavoro è completato quando i contract tests possono accedere all’IAM role a cui fa riferimento BucketAccessRoleArn senza l’errore IAM role, incluso lo scenario MFA richiesto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws
- Ambito
- authorization, cloud, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100