Skip to content

Commit ca360be

Browse files
committed
Add aws-marketplace:MeterUsage policy to the task role
1 parent 181219b commit ca360be

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

template.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import awacs.secretsmanager as actions_secretsmanager
2828
import awacs.ssm as actions_ssm
2929
import awacs.kms as actions_kms
30+
import awacs.aws_marketplace as actions_marketplace
3031

3132
cli_parser = argparse.ArgumentParser(description="imgproxy CloudFormation template generator")
3233
cli_parser.add_argument("-f", "--format",
@@ -927,6 +928,19 @@ def __init__(self, value_one: object, value_two: object) -> None:
927928
)],
928929
),
929930
),
931+
iam.Policy(
932+
PolicyName="aws-marketplace",
933+
PolicyDocument=aws.PolicyDocument(
934+
Version="2012-10-17",
935+
Statement=[aws.Statement(
936+
Effect=aws.Allow,
937+
Action=[
938+
actions_marketplace.MeterUsage,
939+
],
940+
Resource=["*"],
941+
)],
942+
),
943+
),
930944
If(
931945
have_environment_secret_arn,
932946
iam.Policy(

0 commit comments

Comments
 (0)