https://pulumi.com logo
b

billowy-army-68599

05/07/2020, 10:48 PM
@high-postman-55219 that does indeed look frustrating ūüėě can you open an issue here https://github.com/pulumi/pulumi-aws ?
b

broad-dog-22463

05/07/2020, 10:49 PM
Moving to thread
Pretty sure this is because there’s a list rather than a map being used under the hood upstream :/
b

billowy-army-68599

05/07/2020, 10:50 PM
b

broad-dog-22463

05/07/2020, 10:51 PM
@high-postman-55219 are the sans dynamically generates?
Generated*
h

high-postman-55219

05/07/2020, 10:54 PM
@broad-dog-22463 no, they are defined in the stack yml
@billowy-army-68599 thank you i fixed reading the issue
I wasted all day creating a certificate, shame on me
b

broad-dog-22463

05/07/2020, 10:57 PM
If they are hard coded / defined then you can stem the pain using ignoreChanges So your resource would look like Const cert = new aws.route53.Cert(‚Äúname‚ÄĚ, { Params here }, { ignoreChanges: [‚ÄúsubjectAlternativeNames‚ÄĚ] });
This will stop the continual changes while we can investigate
(Sorry, I wrote this on my phone)
h

high-postman-55219

05/07/2020, 11:01 PM
@broad-dog-22463 thank you very much
b

broad-dog-22463

05/07/2020, 11:02 PM
I hope this works for you
b

billowy-army-68599

05/07/2020, 11:36 PM
@high-postman-55219 I was curious if there was a better solution, and there is! Just sorry the list
Copy code
let records = ["a", "b", "c"]
let sans = []
for (let record of records) {
    sans.push(`${record}.${domain}`)
}
const cert = new aws.acm.Certificate("test", {
    domainName: domain,
        subjectAlternativeNames: sans.sort(),
        validationMethod: "DNS",
})
this worked for me, give it a try and let me know if it works for you
h

high-postman-55219

05/07/2020, 11:38 PM
@billowy-army-68599 i try sort the list, but if you see the images that i send, the stack store sans in random order
b

billowy-army-68599

05/07/2020, 11:39 PM
interesting, which aws region are you using?
h

high-postman-55219

05/07/2020, 11:43 PM
us-east-1