Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
package-authoring
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
f
few-army-64952
10/24/2021, 9:42 PM
hi folks, is there a way to create a resource in a different region than the rest of the stack? for example S3 website is in eu-west-1, cloudfront uses an acm from us-east-1. how could i make this happen?
https://github.com/pulumi/pulumi-cloud/issues/214
this is what i am facing
b
billowy-army-68599
10/24/2021, 10:30 PM
@few-army-64952
yes, you can set an explicit provider on the resource that defines the region example here:
https://github.com/pulumi/examples/blob/258d3bad0a00020704743e37911c51be63c06bb4/aws-ts-netlify-cms-and-oauth/cms/infrastructure/index.ts#L90-L98
f
few-army-64952
10/25/2021, 7:31 AM
nice!
and can i import a resource like that with the import command specifying the region?
b
billowy-army-68599
10/25/2021, 12:53 PM
you'd need to specify your own provider, if you do the import, just add the provider on afterwards
#general
Join Slack