bumpy-easter-72049
02/25/2021, 8:36 PMsparse-intern-71089
02/25/2021, 10:10 PMcuddly-actor-99406
02/25/2021, 10:46 PMfull-winter-70537
02/26/2021, 3:07 AMpulumi up
? When I run preview it simply says update
, with no indication of what impact the update will have.
My use case is that I am running on PaaS (App Service & servless in Azure) and I want to be able to run updates against the live infrastructure. In order to do this safely, I need to assess if resources will be destroyed & recreated or merely updated.full-winter-70537
02/26/2021, 3:38 AMbitter-river-54082
02/26/2021, 10:26 AMrds.ts
where I create an AWS RDS instance :
import * as config from "./config"
import * as iam from "./iam"
import * as secrets from "./secrets"
import * as vpc from "./vpc"
const dbSubnets = new aws.rds.SubnetGroup("dbsubnets", {
subnetIds: vpc.vpc.privateSubnetIds,
});
let analyticsDBConf = config.services.aws.analyticsdb
export const instance = new aws.rds.Instance("analyticsdb", {
engine: "postgres",
engineVersion: "12.5",
instanceClass: analyticsDBConf.instanceType!,
name: "DBName",
username: "DBMasterUser",
password: secrets.analyticsdb.passsword.result,
dbSubnetGroupName: dbSubnets.name,
vpcSecurityGroupIds: [
vpc.sgAnalyticsDB!.id
],
domainIamRoleName: iam.servicesInstanceRole.name,
allocatedStorage: 20,
maxAllocatedStorage: 100,
backupRetentionPeriod: 7,
backupWindow: "05:18-05:48",
skipFinalSnapshot: true,
});
Then, in cloudwatch.ts
, I try to create cloudwatch metric alarm on the RDS instance's free disk space :
import * as analyticsdb from "./rds"
import * as sns from "./sns"
import * as config from "./config"
import * as aws from "@pulumi/aws"
new aws.cloudwatch.MetricAlarm("analyticsdb-storage", {
alarmActions: [sns.alarmsTopic],
alarmDescription: "Monitoring space usage on analytics DB",
comparisonOperator: "GreaterThanThreshold",
datapointsToAlarm: 10,
evaluationPeriods: 10,
metricName: "FreeStorageSpace",
namespace: "AWS/RDS",
dimensions: {
DBInstanceIdentifier: analyticsdb.instance.identifier
},
okActions: [sns.alarmsTopic],
period: 60,
statistic: "Maximum",
threshold: 90,
tags: {
deployment: config.deploymentName,
},
}, {
dependsOn: [
analyticsdb.instance
],
})
But when I do pulumi up
I keep getting the following exception on preview, even though I've added an explicit dependency on the RDS instance :
TypeError: Cannot read property 'identifier' of undefined
at Object.<anonymous> (/home/ort/work/private-cloud/cloudwatch.ts:15:52)
flat-insurance-25294
02/26/2021, 12:10 PMflat-insurance-25294
02/26/2021, 12:25 PMhttps://www.youtube.com/watch?v=1Et2TkuxqJg▾
broad-dog-22463
02/26/2021, 12:29 PMflat-insurance-25294
02/26/2021, 12:29 PMflat-insurance-25294
02/26/2021, 12:29 PMflat-insurance-25294
02/26/2021, 12:30 PMinfra
and
app
When dealing with CI while keeping one project on pulumi and one github repo?broad-dog-22463
02/26/2021, 12:31 PMflat-insurance-25294
02/26/2021, 12:31 PMbroad-dog-22463
02/26/2021, 12:32 PMflat-insurance-25294
02/26/2021, 1:06 PMflat-insurance-25294
02/26/2021, 1:07 PMflat-insurance-25294
02/26/2021, 1:19 PMthousands-notebook-24918
02/26/2021, 1:25 PMflat-insurance-25294
02/26/2021, 1:47 PMbroad-dog-22463
02/26/2021, 1:53 PMrapid-raincoat-36492
02/26/2021, 4:53 PMflat-insurance-25294
02/26/2021, 8:47 PMautomation
is stuff I asked for a year ago.flat-insurance-25294
02/26/2021, 8:47 PMLocalWorkspace.createOrSelectStack
flat-insurance-25294
02/26/2021, 8:48 PMbumpy-easter-72049
02/26/2021, 9:05 PMlively-ice-73493
02/26/2021, 9:27 PMbroad-dog-22463
02/26/2021, 9:57 PMbrief-spoon-92183
02/26/2021, 11:19 PMpulumi.runtime.registerStackTransformation
not being invoked? I want to apply tags to all resources, and am following this article, but no luck with getting this to work 😞
Pulumi version is 2.19.0
, and I've followed this Github issue but the problem persists.
Any help is greatly appreciated!
🍻wide-crayon-4093
02/27/2021, 10:57 AMwide-crayon-4093
02/27/2021, 10:57 AMlemon-agent-27707
02/27/2021, 3:35 PMgo install
based workflow. By default, pulumi invokes your program with go run main.go
but you can set the options.binary
property in your pulumi.yaml to point to a precompiled binary. This way you can run a go install
to do an incremental build and then have pulumi up
use the pre-built binary. https://www.pulumi.com/docs/intro/concepts/project/#pulumi-yamlwide-crayon-4093
02/28/2021, 9:46 AM