helpful-baker-3769
08/14/2023, 5:59 AMProgram
CR? I have this in my `Stack`:
---
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
name: github
spec:
stack: budimanjojo/github
programRef:
name: github
destroyOnFinalize: true
envRefs:
GITHUB_OWNER:
type: Literal
literal:
value: budimanjojo
GITHUB_TOKEN:
type: Secret
secret:
name: github-secret
key: GITHUB_TOKEN
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: github-secret
key: PULUMI_ACCESS_TOKEN
secretsRef:
test_secret:
type: Secret
secret:
name: github-secret
key: test_secret
in my Program
, I want to access the test_secret
but I got this error: resource "test_secret" not found
. Here's the Program:
---
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Program
metadata:
name: github
program:
resources:
exampleVariable:
type: github:ActionsSecret
properties:
repository: pulumi-testing
secretName: test_secret
encryptedValue: ${test_secret}
billions-yak-67755
09/01/2023, 2:11 PMconfig:
section (same level as resources:
in your Program
. Docs here:
https://www.pulumi.com/docs/languages-sdks/yaml/yaml-language-reference/#config