This message was deleted.
# google-cloud
s
This message was deleted.
a
Repeated diffs like this indicate a bug in the diff. If you have a self contained reproduction, please open a bug.
You should be able to work around the replace by setting IgnoreChanges.
d
in this case i think the perpetual diff would be preferable to the workaround. i'll see if i can create a minimal replication scenario, thanks
🙏 1
s
Reviving this thread: I have tried using
ignore_changes
as a workaround, but am running into another issue there. When I attempt to ignore the
self_managed
field and then run
pulumi up
I get the following error:
Copy code
error: gcp:certificatemanager/certificate:Certificate resource 'gcp-cert' has a problem: Invalid combination of arguments. "managed": one of `managed,self_managed` must be specified. Examine values at gcp-cert.managed'.
With code such as this:
Copy code
# Create new GCP certificate using Certificate Manager
self.gcp_cert = gcp.certificatemanager.Certificate(
    "gcp-cert",
    self_managed=gcp.certificatemanager.CertificateSelfManagedArgs(
        pem_certificate=self.cf_cert.certificate,
        pem_private_key=self.private_key.private_key_pem,
    ),
    opts=pulumi.ResourceOptions.merge(
        opts, pulumi.ResourceOptions(
            ignore_changes=["selfManaged"]    
        )
    ),
)
The call to
pulumi up
works fine, but after issuing a
pulumi refresh
all additional calls have the same problem. A similar issue occurs if I specify
["selfManaged.certificatePem", "selfManaged.certificatePrivateKey"]
as the args to
ignore_changes
:
Copy code
error: gcp:certificatemanager/certificate:Certificate resource 'gcp-cert' has a problem: Invalid combination of arguments. "self_managed.0.certificate_pem": one of `self_managed.0.certificate_pem,self_managed.0.pem_certificate` must be specified. Examine values at 'gcp-cert.selfManaged.certificatePem'.