Skip to content

Help needed with placeholders in Resource output (actions template) #366

@rvangraan

Description

@rvangraan

Hi there,

Probably a Dummy question. I've made an actions policy and it produced a policy, similar to the following:

...
 {
      "Sid": "Ec2WriteSubnet",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateNetworkInterface"
      ],
      "Resource": [
        "arn:${Partition}:ec2:${Region}:${Account}:subnet/${SubnetId}"
      ]
    },
...

I'm really struggling to understand how I should use this, as it's obviously not valid a valid IAM policy. Is there something I have to pass in to the write_policy_with_template(...) that will change this? I've also tried to create my own SidGroup and then adding ARNs, but that still results in these template resources.

The policy I'm trying to reproduce has a wildcard * ARN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions