https://pulumi.com logo
#aws
Title
# aws
b

broad-gold-44713

08/28/2020, 12:12 AM
How does one lookup the ID for an existing resource SES EmailIdentity for adoption using the
import
paramater? The EmailIdentity get function seems to need the ID as input. Similar issues exist for some other resources where the
get
method requires an ID parameter to find it, but no ID is apparent from aws-cli or from AWS Console.
l

little-cartoon-10569

08/28/2020, 12:44 AM
Often the get functions tell you which string to use as the provider ID, but some, including this one, don't. (The docs are built from Terraform docs, maybe a PR to Terraform can resolve it long term). In the short term, I've found that the error messages have always been helpful: put in garbage for the ID and it will tell you what property or at least what format it is looking for.
b

broad-gold-44713

08/28/2020, 1:39 AM
Thanks, I'll try that
Looks like the ID often is the last bit of the ARN, at least for this case
👍 1