-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
kind/bugSome behavior is incorrect or out of specSome behavior is incorrect or out of specneeds-reproNeeds repro steps before it can be triaged or fixedNeeds repro steps before it can be triaged or fixed
Description
Describe what happened
I have noticed that the output property activeVersion of the ServiceVCL contains the previously activated version throughout the Pulumi UP process.
Example:
- I have a ServiceVCL resource and a separate resource that uses its
activeVersionfor the purpose of triggering update every time the ServiceVCL is updated (in the code below, its the Waf, which utilizes a dynamic provider) - Some changes to the ServiceVCL are made
pulumi upis triggered, ServiceVCL resource gets updated and a new version is activated.- upon running
pulumi preview, the changes shows that theactiveVersionwas only now changed to the currently active one, which should have been reflected in the preceedingpulumi up.
Sample program
const serviceVcl = new fastly.ServiceVcl(
name,
{
defaultTtl: 10,
backends,
domains: domains,
snippets,
conditions,
loggingBlobstorages,
headers,
requestSettings,
gzips,
dictionaries: dictionaries,
acls,
dynamicsnippets: [],
},
{
ignoreChanges: ['versionComment', 'dynamicsnippets'],
import: args.importId ?? '',
},
);
new Waf(
`${name}-waf`,
{
...wafConfig,
serviceId: serviceVcl.id,
vclVersion: serviceVcl.activeVersion,
},
{
parent: serviceVcl,
},
);
Log output
No response
Affected Resource(s)
No response
Output of pulumi about
CLI
Version 3.162.0
Go Version go1.24.2
Go Compiler gc
Plugins
KIND NAME VERSION
language nodejs 3.162.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
filakovsky
Metadata
Metadata
Assignees
Labels
kind/bugSome behavior is incorrect or out of specSome behavior is incorrect or out of specneeds-reproNeeds repro steps before it can be triaged or fixedNeeds repro steps before it can be triaged or fixed