amazon-cloudformation

AWS LoadBalancer to Listen on multiple ports

£可爱£侵袭症+ 提交于 2020-06-27 11:22:28
问题 I have a few applications running as Microservices in aws. Some of them are running on port 80 and some of them are running on port 3000. I want my ALB to listen to traffic on both ports. Then I have a ListenRules to direct the traffic to Microservices. I want to achieve something like below, Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Ref EnvironmentName Subnets: !Ref Subnets SecurityGroups: - !Ref SecurityGroup Tags: - Key: Name Value: !Ref

AWS LoadBalancer to Listen on multiple ports

落爺英雄遲暮 提交于 2020-06-27 11:22:15
问题 I have a few applications running as Microservices in aws. Some of them are running on port 80 and some of them are running on port 3000. I want my ALB to listen to traffic on both ports. Then I have a ListenRules to direct the traffic to Microservices. I want to achieve something like below, Resources: LoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: !Ref EnvironmentName Subnets: !Ref Subnets SecurityGroups: - !Ref SecurityGroup Tags: - Key: Name Value: !Ref

Reference function from within serverless.yml

感情迁移 提交于 2020-06-26 03:55:10
问题 I have several AWS lambdas running, supported by the Serverless Framework . I need one lambda (called lambdaOne ) which will call a second lambda (called lambdaTwo ) using AWS' javascript sdk. The issue is that I am getting an AccessDenied Exception when I attempt this: UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): AccessDeniedException: User: arn:aws:sts::12345678909876:assumed-role/test-dev-us-west-2-lambdaRole/test-dev-lambdaOne is not authorized to

How to set the administrator password for a Windows Server machine on AWS from CloudFormation? [closed]

帅比萌擦擦* 提交于 2020-06-17 08:05:28
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . Improve this question I am deploying a CloudFormation template which launches an EC2 instance from the Windows_Server-2019-English-Full-Base-2020.05.13 AMI. By default, the Windows Server image has an Administrator user. To connect to the instance via RDP, I have to navigate to the

How to set the administrator password for a Windows Server machine on AWS from CloudFormation? [closed]

Deadly 提交于 2020-06-17 08:04:18
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . Improve this question I am deploying a CloudFormation template which launches an EC2 instance from the Windows_Server-2019-English-Full-Base-2020.05.13 AMI. By default, the Windows Server image has an Administrator user. To connect to the instance via RDP, I have to navigate to the

On aws-rds on aws-cdk, where is the setting to make database publicly accessible?

大憨熊 提交于 2020-06-14 06:28:09
问题 With AWS RDS, the console and the CLI/API both have a switch to make the database publicly accessible, but I cannot find a way to do this with the new aws-cdk using the constructs provided. There is a boolean for this in the Cloud Formation classes (e.g. CfnDBInstance), but I can't find documentation on how to use that in combination with the constructs. The CDK is pretty amazing, and it set up everything perfectly with just a few lines of code, except for this one piece. 回答1: Whether the

On aws-rds on aws-cdk, where is the setting to make database publicly accessible?

此生再无相见时 提交于 2020-06-14 06:28:08
问题 With AWS RDS, the console and the CLI/API both have a switch to make the database publicly accessible, but I cannot find a way to do this with the new aws-cdk using the constructs provided. There is a boolean for this in the Cloud Formation classes (e.g. CfnDBInstance), but I can't find documentation on how to use that in combination with the constructs. The CDK is pretty amazing, and it set up everything perfectly with just a few lines of code, except for this one piece. 回答1: Whether the

Amazon Connect and CloudFormation

孤街醉人 提交于 2020-06-13 12:29:09
问题 I found an interesting github link for automating the way to import the AWS connect flow from CloudFormation: https://github.com/iann0036/amazon-connect-cfn/blob/master/example_stack.yaml It is working as expected. but this way is very complicated to frame the complete segment of connect flow in the cloudformation.yaml itself. myConnectContactFlow: Type: "AWS::Connect::ContactFlow" Properties: ConnectInstance: !GetAtt myConnectInstance.Domain Name: "myFlow" Description: "An example flow"

AWS CDK: how do I reference cross-stack resources in same app?

拜拜、爱过 提交于 2020-06-01 07:39:31
问题 I have an App that has two stacks, both within the same region/account. One of those stacks requires the ARN of a lambda that exists in the other stack. How do I reference this? // within stackA constructor public StackA(Construct scope, String id, StackProps props) { SingletonFunction myLambda = SingletonFunction.Builder.create(this, "myLambda") // some code here .build() CfnOutput myLambdaArn = CfnOutput.Builder.create(this, "myLambdaArn") .exportName("myLambdaArn") .description("ARN of the

Access API gateway endpoint in cloudformation using custom resource

久未见 提交于 2020-05-31 04:06:36
问题 I want to be able to call a API gateway endpoint from within cloudformation and parse the response from the output and pass in relevant information to one of the other service in the cloudformation. I have an api endpoint https://123x123x.execute-api.eu-west-2.amazonaws.com/myendpoint/tenants with x-api-key: b8Yk6m63rq8XRnMDKa2PeWE3KvBcU7ZyFIn0Vvrty Content-Type: application/json which returns { "tenants": [ { "tenantId": "tenant-1234", "AZ": "us-west-2c", "tenantUsers": 24, "instanceType":