pulumi-aws
pulumi-aws copied to clipboard
RDS | EnabledCloudwatchLogsExports Reorder
Hello,
Summary of issue:
When using the AWS Provider for RDS in C# if I specify EnabledCloudwatchLogExports in the Listpulumi up
causes an (update)
on the resource even with no changes.
Code Sample:
var rdsCluster = new RDS.Cluster(
$"{rdsargs.environment}-{rdsargs.application}-{rdsargs.service}-rds-cluster", new RDS.ClusterArgs()
{
ApplyImmediately = rdsargs.DatabaseChangeApplyImmediate,
DatabaseName = rdsargs.DatabaseName,
ClusterIdentifierPrefix = $"{rdsargs.environment}-{rdsargs.application}-{rdsargs.service}",
DbClusterParameterGroupName = ClusterParameterGroup.Name,
DbSubnetGroupName = ClusterDBSubnetGroup.Name,
EnabledCloudwatchLogsExports =
{
"audit",
"error",
"slowquery",
"general"
},
MasterUsername = "admin",
MasterPassword = new Random.RandomPassword($"{rdsargs.environment}-{rdsargs.application}-{rdsargs.service}-rds-passwd", new Random.RandomPasswordArgs()
{
Length = 16,
Special = true,
OverrideSpecial = "_%@"
}).Result,
Engine = dbFamily,
EngineVersion = dbengine[1],
IamRoles =
{
rdsargs.DatabaseRoleArn
},
PreferredBackupWindow = "21:00-01:45",
PreferredMaintenanceWindow = "Mon:02:00-Mon:04:15",
StorageEncrypted = true,
VpcSecurityGroupIds =
{
rdsSg.Id
}
});
Output of Diff after initial deployment of resource, so second pulumi up
:
~ aws:rds/cluster:Cluster: (update)
[id=sandbox-eclipse-firm20200807145700776800000001]
[urn=urn:pulumi:sandbox::test::aws:rds/cluster:Cluster::sandbox-test-me-rds-cluster]
[provider=urn:pulumi:sandbox::eclipse::pulumi:providers:aws::default_2_11_0::142bd0f8-dac1-4460-9078-cb0b8a5b8ead]
~ enabledCloudwatchLogsExports: [
[0]: <null>
[1]: <null>
**_~ [2]: "general" => "slowquery"
~ [3]: "slowquery" => "general"**
+-aws:rds/clusterInstance:ClusterInstance: (replace) - **This is actually false, there is no replacement at all it just updates the LogExports.**
[id=tf-20200807145745967200000003]
[urn=urn:pulumi:sandbox::test::aws:rds/clusterInstance:ClusterInstance::sandbox-test-me-db-instance-2]
[provider=urn:pulumi:sandbox::test::pulumi:providers:aws::default_2_11_0::142bd0f8-dac1-4460-9078-cb0b8a5b8ead]
~ clusterIdentifier: "sandbox-test-me20200807145700776800000001" => output<string>
Expect:
Upon pulumi up
I expect zero changes to occur.