white-cat-90296
08/25/2021, 4:49 PM// Create an Azure resource (Storage Account)
const storageAccount = new storage.StorageAccount('sa', {
resourceGroupName: resourceGroup.name,
sku: {
name: storage.SkuName.Standard_LRS,
},
kind: storage.Kind.StorageV2,
});
// Export the primary key of the Storage Account
const storageAccountKeys = pulumi
.all([resourceGroup.name, storageAccount.name])
.apply(([resourceGroupName, accountName]) =>
storage.listStorageAccountKeys({ resourceGroupName, accountName })
);
export const primaryStorageKey = storageAccountKeys.keys[0].value;
// MAYBE A FUNCTION HERE TO BE EXECUTED AFTER SA IS CREATED/MODIFIED
const callback = () => { axios.get(`<http://mycustomserver.com/blabla/${> primaryStorageKey }`) }
cool-egg-852
08/25/2021, 4:50 PMpulumi.all
.white-cat-90296
08/25/2021, 4:52 PMpulumi.all
is the callback I am looking for then?cool-egg-852
08/25/2021, 4:53 PMwhite-cat-90296
08/25/2021, 4:56 PMbored-oyster-3147
08/25/2021, 5:10 PMwhite-cat-90296
08/25/2021, 6:03 PMpulumi up
locally you have the option to cancel the update. The apply
function executes regardless. Can you elaborate on checking for IsDryRun on the current deployment? Where is that value value be listened to?bored-oyster-3147
08/25/2021, 6:06 PMIsDryRun
function: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/runtime/#isDryRun
It's in the pulumi.runtime
modulewhite-cat-90296
08/25/2021, 6:07 PMpulumi.runtime.isDryRun()
to decide