generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to support wing platforms (at least v0.44)
- Loading branch information
Showing
14 changed files
with
70 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* - TF_BACKEND_BUCKET - The name of the s3 bucket to use for storing Terraform state | ||
* - TF_BACKEND_BUCKET_REGION - The region the bucket was deployed to | ||
* - TF_BACKEND_STATE_FILE - The object key used to store state file | ||
*/ | ||
|
||
exports.Platform = class WingGithubActionsBackendS3 { | ||
postSynth(config) { | ||
if (!process.env.TF_BACKEND_BUCKET) {throw new Error("env var TF_BACKEND_BUCKET not set")} | ||
if (!process.env.TF_BACKEND_BUCKET_REGION) {throw new Error("env var TF_BACKEND_BUCKET_REGION not set")} | ||
if (!process.env.TF_BACKEND_STATE_FILE) {throw new Error("env var TF_BACKEND_STATE_FILE not set")} | ||
config.terraform.backend = { | ||
s3: { | ||
bucket: process.env.TF_BACKEND_BUCKET, | ||
region: process.env.TF_BACKEND_BUCKET_REGION, | ||
key: process.env.TF_BACKEND_STATE_FILE | ||
} | ||
} | ||
return config; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* - TF_BACKEND_BUCKET - The name of the s3 bucket to use for storing Terraform state | ||
* - TF_BACKEND_BUCKET_REGION - The region the bucket was deployed to | ||
* - TF_BACKEND_STATE_FILE - The object key used to store state file | ||
*/ | ||
|
||
exports.Platform = class WingGithubActionsBackendS3 { | ||
postSynth(config) { | ||
if (!process.env.TF_BACKEND_BUCKET) {throw new Error("env var TF_BACKEND_BUCKET not set")} | ||
if (!process.env.TF_BACKEND_BUCKET_REGION) {throw new Error("env var TF_BACKEND_BUCKET_REGION not set")} | ||
if (!process.env.TF_BACKEND_STATE_FILE) {throw new Error("env var TF_BACKEND_STATE_FILE not set")} | ||
config.terraform.backend = { | ||
s3: { | ||
bucket: process.env.TF_BACKEND_BUCKET, | ||
region: process.env.TF_BACKEND_BUCKET_REGION, | ||
key: process.env.TF_BACKEND_STATE_FILE | ||
} | ||
} | ||
return config; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters