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.