Skip to content

IAM policy should include CloudWatchLogGroupNamePrefix variable #1

@timtron2

Description

@timtron2

"PolicyDocument": "{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": [ \"logs:PutMetricFilter\", \"logs:PutRetentionPolicy\" ], \"Resource\": \"arn:aws:logs:{{ global:REGION }}:{{ global:ACCOUNT_ID }}:log-group:/AWSSupport-SetupIPMonitoringFromVPC/*\" }, { \"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutDashboard\", \"Resource\": \"*\" } ]}"

L216 should be

    "PolicyDocument": "{    \"Version\": \"2012-10-17\",    \"Statement\": [        {            \"Effect\": \"Allow\",            \"Action\": [                \"logs:PutMetricFilter\",                \"logs:PutRetentionPolicy\"            ],            \"Resource\": \"arn:aws:logs:{{ global:REGION }}:{{ global:ACCOUNT_ID }}:log-group:/{{ CloudWatchLogGroupNamePrefix }}/*\"        },        {            \"Effect\": \"Allow\",            \"Action\": \"cloudwatch:PutDashboard\",            \"Resource\": \"*\"        }    ]}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions