Skip to content

Commit

Permalink
Switch to envRefs for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivek Lakshmanan committed Mar 25, 2021
1 parent 3e08c23 commit 949e9a6
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 16 deletions.
24 changes: 21 additions & 3 deletions stack-examples/yaml/ext_s3_bucket_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,27 @@ kind: Stack
metadata:
name: s3-bucket-stack-02
spec:
accessTokenSecret: pulumi-api-secret
envSecrets:
- pulumi-aws-secrets
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SESSION_TOKEN
stack: joeduffy/s3-op-project/dev
refresh: true
destroyOnFinalize: true
Expand Down
7 changes: 6 additions & 1 deletion stack-examples/yaml/nginx_k8s_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ kind: Stack
metadata:
name: nginx-k8s-stack
spec:
accessTokenSecret: pulumi-api-secret
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
stack: joeduffy/nginx/dev
projectRepo: https://github.com/metral/pulumi-nginx
commit: 2b0889718d3e63feeb6079ccd5e4488d8601e353
Expand Down
19 changes: 16 additions & 3 deletions stack-examples/yaml/s3_bucket_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,22 @@ kind: Stack
metadata:
name: s3-bucket-stack
spec:
accessTokenSecret: pulumi-api-secret
envSecrets:
- pulumi-aws-secrets
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
stack: joeduffy/s3-op-project/dev
projectRepo: https://github.com/joeduffy/test-s3-op-project
commit: cc5442870f1195216d6bc340c14f8ae7d28cf3e2
Expand Down
19 changes: 16 additions & 3 deletions stack-examples/yaml/s3_bucket_stack_access_token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,22 @@ kind: Stack
metadata:
name: s3-bucket-stack
spec:
accessTokenSecret: pulumi-api-secret
envSecrets:
- pulumi-aws-secrets
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
gitAuthSecret: git-secret
stack: joeduffy/s3-op-project/dev
projectRepo: https://github.com/joeduffy/test-s3-op-project
Expand Down
19 changes: 16 additions & 3 deletions stack-examples/yaml/s3_bucket_stack_basic_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,22 @@ kind: Stack
metadata:
name: s3-bucket-stack
spec:
accessTokenSecret: pulumi-api-secret
envSecrets:
- pulumi-aws-secrets
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
gitAuthSecret: git-secret
stack: joeduffy/s3-op-project/dev
projectRepo: https://github.com/joeduffy/test-s3-op-project
Expand Down
19 changes: 16 additions & 3 deletions stack-examples/yaml/s3_bucket_stack_ssh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,22 @@ kind: Stack
metadata:
name: s3-bucket-stack
spec:
accessTokenSecret: pulumi-api-secret
envSecrets:
- pulumi-aws-secrets
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
gitAuthSecret: git-secret
stack: joeduffy/s3-op-project/dev
projectRepo: [email protected]:joeduffy/test-s3-op-project.git
Expand Down

0 comments on commit 949e9a6

Please sign in to comment.