late-balloon-24601
05/03/2024, 7:54 PMesc env edit
that I can use for testing? š)late-balloon-24601
05/03/2024, 8:01 PMlate-balloon-24601
05/03/2024, 8:10 PMlate-balloon-24601
05/03/2024, 8:49 PMlate-balloon-24601
05/03/2024, 9:00 PMlate-balloon-24601
05/03/2024, 9:03 PMlate-balloon-24601
05/03/2024, 10:51 PM--editor
arg of the ESC CLI to set the contents of an environment from a local yaml file:
#!/bin/bash
environment="$1"
file="$2"
editor_script="$(mktemp)"
cat <<EOF >>$editor_script
#!/bin/bash
esc_file="\$1"
yq -i e 'load("$file")' \$esc_file
EOF
chmod +x "$editor_script"
esc env edit "$environment" --editor "$editor_script"
red-match-15116
05/04/2024, 2:21 AMred-match-15116
05/04/2024, 2:24 AMAlso, very surprised by the lack of a git provider/sync solution right now!Can you say more about what you're looking for here?
late-balloon-24601
05/04/2024, 11:49 AMenvironments/
āāā aws-accounts/
āāā account-1.yaml # in esc: org/aws-accounts_account-1
āāā account-1/
ā āāā prod.yaml # in esc: org/aws-accounts_account-1_prod, inherits from ../account-1.yaml
ā āāā stage.yaml # in esc: org/aws-accounts_account-1_stage
ā āāā dev.yaml # in esc: org/aws-accounts_account-1_dev
āāā account-2.yaml # in esc: org/aws-accounts_account-2, inherits from ../account-2.yaml/
āāā prod.yaml # in esc: org/aws-accounts_account-2_prod
āāā stage.yaml # in esc: org/aws-accounts_account-2_stage
āāā dev.yaml # in esc: org/aws-accounts_account-2_dev
Given Pulumi's focus on IaC I'm surprised that ESC didn't already have a solution for recursively syncing a directory/repo of yaml files. It feels like the most natural place to define environments, along with the infrastructure that defines the core of those environments.
Since this doesn't already exist, I feel I'm misunderstanding ESC's strengths. Have you found that ESC is better focused on being more of an integrated central secret store?red-match-15116
05/04/2024, 4:56 PMGiven Pulumi's focus on IaC I'm surprised that ESC didn't already have a solution for recursively syncing a directory/repo of yaml files. It feels like the most natural place to define environments, along with the infrastructure that defines the core of those environments.Yeah, something like what you describe is in the plans for GA. It has come up in a number of contexts, one solution is the pulumiservice provider which we will be pursuing in the next month. Syncing from git is another option we've deliberated. Here are some relevant issues: ā¢ https://github.com/pulumi/esc/issues/63 ā¢ https://github.com/pulumi/esc/issues/185 Definitely upvote/add comments because we use that to guide prioritization.