https://pulumi.com logo
Title
s

stocky-petabyte-29883

07/11/2022, 8:07 AM
Hi Guys I want to read a remote file(possibly using remoteasset) and then use the file contents for creating an iam policy.
const albPolicy = new aws.iam.Policy("alb-policy", {
    name: "AWSLoadBalancerControllerIAMPolicy",
    policy: new pulumi.asset.RemoteAsset("<https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.0/docs/install/iam_policy.json>"),
    tags: {
        Environment: stack,
    },
});
The code I sent doesn't work, but is there any way to achieve this?