Hi Guys I want to read a remote file(possibly usin...
# general
s
Hi Guys I want to read a remote file(possibly using remoteasset) and then use the file contents for creating an iam policy.
Copy code
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?