Hello everyone :wave:, I'm trying to use Pulumi es...
# general
a
Hello everyone 👋, I'm trying to use Pulumi esc. I created Environments with name test-environment and I added variables . I add picture for code and environment.When I perform pulumi preview it does not show me anything. When I run pulumi up it does not show the content of the environment variable and neither does the pulumi export.
d
In your Pulumi.dev.yaml file, I don't think
imports
is needed, you just list the environments under
environment
a
I tried with only environment but the result is same
d
In your esc config, are they added under the
pulumiConfig
map?
a
What do you mean ? This:
Copy code
import pulumi
from pulumi import Config
from pulumi_aws import acm, route53


config = Config()

company = config.get("company")
environment = config.get("environment")
region = config.get("region")
d
In your esc config in pulumi cloud
a
my pulumi config:
d
It looks like tou setup the
pulumiConfig
map, as shown in the docs I linked
a
I added the values with this:
Copy code
values:
  environmentVariables:
    aws-region: eu-central-1
    company: salesql
    region: euc1
    environment: dev
And it isn't able to obtain the values
d
Yes, you use
pulumiConfig
to pass them into your pulumi stacks
a
its work, thanks @dry-keyboard-94795. I didn't understand how pulumi esc works well 🙏