https://pulumi.com logo
Title
c

cuddly-computer-18851

01/31/2023, 5:19 AM
G'day all - I'm attempting to import an existing AWS Elasticsearch (Opensearch) domain in to a pulumi stack - a
pulumi import ...
shows
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

cuddly-continent-74226

01/31/2023, 6:04 AM
Failing all else I guess you could create a log group and import that too 😅
c

cuddly-computer-18851

01/31/2023, 6:25 AM
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