chilly-night-36370
02/24/2021, 9:01 PMrandom.RandomPassword
, and then use it for something like a database admin password. Is there a way that I can get that password if I want to login to the DB manually? Similar to a password manager like Bitwarden/Lastpass. The docs only explains how it is stored in state but I can't see anything on how you can view that password.victorious-sugar-42620
02/24/2021, 10:41 PMechoing-breakfast-73834
02/24/2021, 11:00 PMtrue
? I'd like to have a 'password reset' configuration option for some secrets in AWS secrets manager that would, when set, trigger a rotation. Was thinking about generating a random string to append to the resource name, or creating a dynamic resource that the rotation resource is dependent on, but both approaches have a couple of problemslittle-cartoon-10569
02/24/2021, 11:13 PMlittle-cartoon-10569
02/25/2021, 2:47 AMcuddly-actor-99406
02/25/2021, 4:37 AMwide-crayon-4093
02/25/2021, 6:02 AMcuddly-actor-99406
02/25/2021, 8:32 AMbillowy-queen-29529
02/25/2021, 12:28 PMbumpy-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 PMbroad-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 PM