insert test template into cloud formation at all 3 template positions and log

pull/263/head
Frostebite 2021-05-02 02:14:43 +01:00
parent 89a0db42cc
commit 97d1a5bb54
3 changed files with 17 additions and 23 deletions

9
dist/index.js vendored
View File

@ -485,8 +485,7 @@ class AWS {
const template1 = `
AWSSecretAccessKeyssss:
Type: String
Default: '0'
`;
Default: '0'`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp1),
template1,
@ -498,8 +497,7 @@ class AWS {
Type: AWS::SecretsManager::Secret
Properties:
Name: !Join [ "", [ 'testsec', !Ref BUILDID ] ]
SecretString: !Ref AWSSecretAccessKey
`;
SecretString: !Ref AWSSecretAccessKey`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp2),
template2,
@ -508,8 +506,7 @@ class AWS {
const indexp3 = taskDefCloudFormation.search(p3string) + p3string.length + '\n'.length;
const template3 = `
- Name: 'test'
ValueFrom: !Ref GithubTokenSecret
`;
ValueFrom: !Ref GithubTokenSecret`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp3),
template3,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -340,8 +340,7 @@ class AWS {
const template1 = `
AWSSecretAccessKeyssss:
Type: String
Default: '0'
`;
Default: '0'`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp1),
template1,
@ -353,8 +352,7 @@ class AWS {
Type: AWS::SecretsManager::Secret
Properties:
Name: !Join [ "", [ 'testsec', !Ref BUILDID ] ]
SecretString: !Ref AWSSecretAccessKey
`;
SecretString: !Ref AWSSecretAccessKey`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp2),
template2,
@ -363,8 +361,7 @@ class AWS {
const indexp3 = taskDefCloudFormation.search(p3string) + p3string.length + '\n'.length;
const template3 = `
- Name: 'test'
ValueFrom: !Ref GithubTokenSecret
`;
ValueFrom: !Ref GithubTokenSecret`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp3),
template3,