How to limit an application to one layer type in AWS Opsworks?

How do I limit the deployment-only application to one default level in AWS Opsworks?

I installed a webhook from Github to automatically deploy my application to Opsworks, but the application is deployed in all my layers when it needs to be deployed to only one level.

+4
source share
2 answers

I struggled a bit with the same question, and I think I finally got the answer:

  • Create a new SNS theme.

  • Create an AWS Lambda function that runs the deployment for you on everything you want using the AWS-SDK JavaScript. So you can understand:

var AWS = require('aws-sdk');
AWS.config.region = 'us-east-1'; // Opsworks only uses this one for Stacks in any region
var opsworks = new AWS.OpsWorks();
opsworks.describeStacks({}, function(err, data) {
  console.log(data);
  context.succeed(message);
});
Hide result
  1. -, , AWS API.

  2. Github SNS, Opsworks.

0

, , , . , , .

Opsworks , .

0

Source: https://habr.com/ru/post/1533799/


All Articles