Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
feat: Add ENV according to Bedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Jan 4, 2021
1 parent 1472bbc commit ecdedea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/cloud-run-wordpress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export class CloudRunWordpress extends pulumi.ComponentResource {
value: keys[i].result,
}));

const bedrockKeyEnvs = keysTypes.map((k, i) => ({
name: k,
value: keys[i].result,
}));

this.cloudRunService = new gcp.cloudrun.Service(
name,
{
Expand Down Expand Up @@ -175,6 +180,7 @@ export class CloudRunWordpress extends pulumi.ComponentResource {
value: config.wordpressDebug ? '1' : '',
},
...keyEnvs,
...bedrockKeyEnvs,
],
},
],
Expand Down

0 comments on commit ecdedea

Please sign in to comment.