aws-cloudformation / aws-cloudformation/cloudformation-cli
Accessing IAM Roles with Contract Tests
- Ngôn ngữ chính
- Python
- Star
- 337
- Fork
- 172
- Merge trung bình
- 3 ngày 5 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp triển khai nào được nêu tên. Hãy bắt đầu bằng cách tái hiện luồng thông tin xác thực của contract-test và so sánh luồng này với SAM testing cũng như hành vi của AWS STS get-session-token được mô tả trong issue. Công việc được xem là hoàn tất khi contract tests có thể truy cập IAM role được tham chiếu bởi BucketAccessRoleArn mà không gặp lỗi IAM role, bao gồm cả kịch bản MFA bắt buộc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws
- Lĩnh vực
- authorization, cloud, testing-qa
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100