Setup cloud runner state properly within RemoteClientCli
parent
62b4c04614
commit
1ce8526057
|
|
@ -422,12 +422,12 @@ class AWSBaseStack {
|
||||||
...parametersWithoutHash,
|
...parametersWithoutHash,
|
||||||
...[{ ParameterKey: 'Version', ParameterValue: parametersHash }],
|
...[{ ParameterKey: 'Version', ParameterValue: parametersHash }],
|
||||||
];
|
];
|
||||||
const updateInput = {
|
// const updateInput: SDK.CloudFormation.UpdateStackInput = {
|
||||||
StackName: baseStackName,
|
// StackName: baseStackName,
|
||||||
TemplateBody: baseStack,
|
// TemplateBody: baseStack,
|
||||||
Parameters: parameters,
|
// Parameters: parameters,
|
||||||
Capabilities: ['CAPABILITY_IAM'],
|
// Capabilities: ['CAPABILITY_IAM'],
|
||||||
};
|
// };
|
||||||
const createStackInput = {
|
const createStackInput = {
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
TemplateBody: baseStack,
|
TemplateBody: baseStack,
|
||||||
|
|
@ -457,8 +457,8 @@ class AWSBaseStack {
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
cloud_runner_logger_1.default.log(`Base stack exists (version: ${stackVersion}, local version: ${parametersHash})`);
|
cloud_runner_logger_1.default.log(`Base stack exists (version: ${stackVersion}, local version: ${parametersHash})`);
|
||||||
if (parametersHash !== stackVersion) {
|
if (parametersHash !== stackVersion) {
|
||||||
cloud_runner_logger_1.default.log(`Updating`);
|
cloud_runner_logger_1.default.log(`Skip Updating Disabled`);
|
||||||
yield CF.updateStack(updateInput).promise();
|
//await CF.updateStack(updateInput).promise();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cloud_runner_logger_1.default.log(`No update required`);
|
cloud_runner_logger_1.default.log(`No update required`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -32,12 +32,12 @@ export class AWSBaseStack {
|
||||||
...parametersWithoutHash,
|
...parametersWithoutHash,
|
||||||
...[{ ParameterKey: 'Version', ParameterValue: parametersHash }],
|
...[{ ParameterKey: 'Version', ParameterValue: parametersHash }],
|
||||||
];
|
];
|
||||||
const updateInput: SDK.CloudFormation.UpdateStackInput = {
|
// const updateInput: SDK.CloudFormation.UpdateStackInput = {
|
||||||
StackName: baseStackName,
|
// StackName: baseStackName,
|
||||||
TemplateBody: baseStack,
|
// TemplateBody: baseStack,
|
||||||
Parameters: parameters,
|
// Parameters: parameters,
|
||||||
Capabilities: ['CAPABILITY_IAM'],
|
// Capabilities: ['CAPABILITY_IAM'],
|
||||||
};
|
// };
|
||||||
const createStackInput: SDK.CloudFormation.CreateStackInput = {
|
const createStackInput: SDK.CloudFormation.CreateStackInput = {
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
TemplateBody: baseStack,
|
TemplateBody: baseStack,
|
||||||
|
|
@ -72,8 +72,8 @@ export class AWSBaseStack {
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
CloudRunnerLogger.log(`Base stack exists (version: ${stackVersion}, local version: ${parametersHash})`);
|
CloudRunnerLogger.log(`Base stack exists (version: ${stackVersion}, local version: ${parametersHash})`);
|
||||||
if (parametersHash !== stackVersion) {
|
if (parametersHash !== stackVersion) {
|
||||||
CloudRunnerLogger.log(`Updating`);
|
CloudRunnerLogger.log(`Skip Updating Disabled`);
|
||||||
await CF.updateStack(updateInput).promise();
|
//await CF.updateStack(updateInput).promise();
|
||||||
} else {
|
} else {
|
||||||
CloudRunnerLogger.log(`No update required`);
|
CloudRunnerLogger.log(`No update required`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue