This message was deleted.
# aws
s
This message was deleted.
s
trying to do something like this:
Copy code
const policyElastiCache = new aws.iam.Policy("FooServiceElastiCache", {
    path: "/",
    description: "Foo Service ElastiCache",
    policy: aws.iam.getPolicyDocument({
      version: "2012-10-17",
      statements: [
        {
          actions: [ "elaticache:Describe*", "elasticache:List*"],
          effect: "Allow",
          resources: [redis.arn]
        }
      ]
    }),
  });
actually i think i may have just gotten it working with getPolicyDocumentOutput instead of getPolicyDocument 🤔
🙌 1