G'day all - I'm attempting to import an existing A...
# general
c
G'day all - I'm attempting to import an existing AWS Elasticsearch (Opensearch) domain in to a pulumi stack - a
pulumi import ...
shows
Copy code
logPublishingOptions : [
            [0]: {
                enabled              : false
                logType              : "ES_APPLICATION_LOGS"
            }
        ]
however this resource is impossible to recreate exactly on the Typescript side, because
cloudwatchLogGroupArn
is a required property. https://www.pulumi.com/registry/packages/aws/api-docs/opensearch/domain/#domainlogpublishingoption What do I do? Thanks for any advice 😃
c
Failing all else I guess you could create a log group and import that too 😅
c
Ok apologies I've figured it out - if you set
cloudwatchLogGroupArn
to an empty string in the code, then Pulumi just removes it from the property set and the import agrees they match