mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[cloud][test]Add missing IAM policy for cloudfront (#38248)
Cloudfront needs CreateOriginAccessIdentity Add profile parameter to setup-iam.yml. Could arguably just use AWS_PROFILE but given that other tasks are using profile, should be consistent.
This commit is contained in:
parent
55fd3d62fb
commit
a1d3cf488d
2 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
- name: Get aws account ID
|
||||
aws_caller_facts:
|
||||
profile: "{{ profile|default(omit) }}"
|
||||
register: aws_caller_facts
|
||||
|
||||
- name: Set aws_account_fact
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"Action": [
|
||||
"cloudfront:CreateDistribution",
|
||||
"cloudfront:CreateDistributionWithTags",
|
||||
"cloudfront:CreateCloudFrontOriginAccessIdentity",
|
||||
"cloudfront:DeleteDistribution",
|
||||
"cloudfront:GetDistribution",
|
||||
"cloudfront:GetStreamingDistribution",
|
||||
|
|
Loading…
Reference in a new issue