Merge 1b98d7dbbab018931d111093edfcf42236bcb809 into 20720ca4f9175373ee8075fc18ce823707350534

This commit is contained in:
minakshi 2024-11-13 14:24:36 +00:00 committed by GitHub
commit f69e3aa55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

24
iamrole.yml Normal file
View File

@ -0,0 +1,24 @@
Resources:
MyIAMRole:
Type: AWS::IAM::Role
Properties:
RoleName:
MyCloudFormationRole:
AssumeRolePolicyDocument:
Version:'2012-10-17'
Statement:
Effect: Allow
Principal:
Service:
'cloudformation.amazonaws.com'
Action:'sts:AssumeRole'
Policies:
PolicyName: MyPolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
Effect:Allow
Action:
:'s3:CreateBucket'
:'s3:PutObject'
Resource:'*'