This message was deleted.
# aws
s
This message was deleted.
l
Did you previously change the instance via the console, then run
pulumi refresh
?
This doesn't happen unless Pulumi detects a difference between the code and the state. If you haven't changed the code, then state must have changed.
w
I have not changed anything through the console
l
What are the changing values (view details)?
And how are you setting the replicateSourceDb? Is the value constant?
w
Copy code
replicateSourceDb: this.db.arn,
l
Where
this.db
is a different instance, presumably?
w
that is correct - but the instance is not changing
Copy code
Do you want to perform this update? details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:dev::kable-infrastructure::pulumi:pulumi:Stack::kable-infrastructure-dev]
        > aws:ec2/vpc:Vpc: (read)
            [id=vpc-00cfcc90ebcb40c37]
            [urn=urn:pulumi:dev::kable-infrastructure::infrastructure:fargate$aws:ec2/vpc:Vpc::kable-app-cluster-service-vpc]
            [provider=urn:pulumi:dev::kable-infrastructure::pulumi:providers:aws::default_5_18_0::756ee237-668a-4a77-a769-0200bcbf0e4c]
        ++aws:rds/instance:Instance: (create-replacement)
            [id=dev-kable-db-rds-replica64d5a22]
            [urn=urn:pulumi:dev::kable-infrastructure::custom:resource:DB$aws:rds/instance:Instance::dev-kable-db-rds-replica]
            [provider=urn:pulumi:dev::kable-infrastructure::pulumi:providers:aws::default_5_18_0::756ee237-668a-4a77-a769-0200bcbf0e4c]
          ~ replicateSourceDb: "dev-kable-db-rds6311b5b" => "arn:aws:rds:us-east-1:370114867760:db:dev-kable-db-rds6311b5b"
          - storageEncrypted : true
        +-aws:rds/instance:Instance: (replace)
            [id=dev-kable-db-rds-replica64d5a22]
            [urn=urn:pulumi:dev::kable-infrastructure::custom:resource:DB$aws:rds/instance:Instance::dev-kable-db-rds-replica]
            [provider=urn:pulumi:dev::kable-infrastructure::pulumi:providers:aws::default_5_18_0::756ee237-668a-4a77-a769-0200bcbf0e4c]
          ~ replicateSourceDb: "dev-kable-db-rds6311b5b" => "arn:aws:rds:us-east-1:370114867760:db:dev-kable-db-rds6311b5b"
          - storageEncrypted : true
        --aws:rds/instance:Instance: (delete-replaced)
            [id=dev-kable-db-rds-replica64d5a22]
            [urn=urn:pulumi:dev::kable-infrastructure::custom:resource:DB$aws:rds/instance:Instance::dev-kable-db-rds-replica]
            [provider=urn:pulumi:dev::kable-infrastructure::pulumi:providers:aws::default_5_18_0::756ee237-668a-4a77-a769-0200bcbf0e4c]
This is the describe of the instance
l
Are you building anything inside an
apply()
? I'd say that there is actually no changed, but Pulumi can't be definite about this, so it's pessimistically warning you of a potential change.
There's your problem:
replicateSourceDb: "dev-kable-db-rds6311b5b" => "arn:aws:rds:us-east-1:370114867760:db:dev-kable-db-rds6311b5b"
That's a real change.
You had the ID, and you're now correctly setting it to the ARN.
w
Oh interesting. Nothing in my code is changing but it looks like the state pulumi is checking against is
l
So you can fix this by changing your code to match.
identifier is valid if you're replicating a single instance.
You use ARN if you're replicating a multi-AZ instance, I think?
w
It is a single az instance
l
And perhaps RDS is changing the value behind the scenes.
Change
this.db.arn
to
this.db.identifier
and it should work.
w
I think I am telling pulumi to replicate the arn, it is somehow storing the id, so then when I say store the arn, it recreates it every time. Thanks for the help!
👍 1