https://pulumi.com logo
#general
Title
# general
f

flat-carpenter-38121

03/15/2024, 6:07 PM
Hello, im trying to generate a bunch of gcp cloud armour security policies which is going well. Though i am running into an issue associating those policies to a load balancer. The pulumi ai seemed to suggest something to me that does exist?
Copy code
// Attach the Security Policy to the Target Proxy
		_, err = compute.NewSecurityPolicyAssociation(ctx, "securityPolicyAssociation", &compute.SecurityPolicyAssociationArgs{
			Policy:      securityPolicy.ID(),
			TargetProxy: proxy.ID(),
		})
		if err != nil {
			return err
		}