https://pulumi.com logo
Title
t

thankful-monitor-31162

01/01/2023, 6:08 PM
Hello, Is there a client token I can pass to the ec2 instance creation ? I’ve seen that the aws endpoint has this for idempotency purposes but the aws ts sdk doesn’t, any ideas?
v

victorious-church-57397

01/01/2023, 7:24 PM
The pulumi aws provider is bridged from the terraform provider so unless it’s in there, it won’t be in the pulumi one afaik If it’s in the cloud control api, then you might find it in the aws-native package
m

many-telephone-49025

01/01/2023, 7:30 PM
Hi Eduard, for the
aws-classic
provider, the creation of a unique client-token is done by Terraform (https://github.com/hashicorp/terraform-plugin-sdk/blob/main/helper/resource/id.go) as it is the "user" calling the API. For the
aws-native
, I am currently unsure how the cient-token gets handled to ensure the Idempotency of the supported API calls.
t

thankful-monitor-31162

01/01/2023, 7:35 PM
Is that aws-native?
m

many-telephone-49025

01/01/2023, 7:36 PM
No that's what we call the classic aka bridge from TF
So normally in this, the terraform sdk should be taking care to set the client token on the calls.
t

thankful-monitor-31162

01/01/2023, 7:38 PM
Hmm, do I have an option to provide it by myself?
m

many-telephone-49025

01/01/2023, 7:41 PM
I am not 100 sure, but I did not see an option. The code above should be takin care, that you have a unique token every time
t

thankful-monitor-31162

01/01/2023, 7:58 PM
Ok, thank you