amazon-web-services

Unable to add an RDS instance to Elastic Beanstalk

我与影子孤独终老i 提交于 2021-02-20 19:05:10
问题 Suddenly I can't add an RDS to my EB environment, not sure why. Here's the full error message: Unable to retrieve RDS configuration options. Configuration validation exception: Invalid option value: 'db.t1.micro' (Namespace: 'aws:rds:dbinstance', OptionName: 'DBInstanceClass'): DBInstanceClass db.t1.micro not supported for mysql db I am not sure if this is due to the default AMI that I am using or something else. Note that I didn't choose to launch t1.micro RDS instance. Seems like eb is

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

人盡茶涼 提交于 2021-02-20 17:03:44
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

假如想象 提交于 2021-02-20 17:02:54
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation

ⅰ亾dé卋堺 提交于 2021-02-20 17:02:07
问题 I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront. I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy. Set up my .env.deploy.production file to look like this: AWS_KEY=<my key> AWS_SECRET=<my secret> PRODUCTION_BUCKET=<app.<my domain>.com PRODUCTION_REGION=us-east-1 PRODUCTION_DISTRIBUTION=<my cloudfront distribution id> My config/default.js looks like this: /* jshint node: true */ module.exports = function

AWS lambda function with runtime python 3.7 does not utilizing connection pool in rds proxy instead it create new connection on every request

本秂侑毒 提交于 2021-02-20 03:42:28
问题 I am using AWS lambda functions for a few months now. so far I have cached the connection in the lambda function memory to reuse. After reading about AWS rds proxy recently, I am trying to utilize the connection pool for the lambda functions(Runtime python3.7). so to test the way rds proxy works with lambda functions, I created two functions with runtime node12 and python3.7, the behaviours was this. 1. node12 function => When I run this function, it pools two connection in the proxy and

How to override AssociatePublicIpAddress for an EC2 instance

随声附和 提交于 2021-02-20 03:00:59
问题 We have several EC2 instances that are in a private subnet, but gets a public IP address every time that instance is launched. That private subnet has "Auto-assign Public IP" property set to No, but what happens is when instance was created, it got AssociatePublicIpAddress property set to true. Now we don't know how to reset AssociatePublicIpAddress to false without terminating the instances. I'd expect aws ec2 create-network-interface would have an option for that, but it's not the case. EC2

20-30 concurrent mysql connections causes RDS to spike above 80%

给你一囗甜甜゛ 提交于 2021-02-20 00:20:34
问题 So We have an Amazon RDS server running with the following specs. Instance Class: r3.xlarge My issue is when the MySQL server experiences multiple concurrent connections (connections in range of 30-40), The CPU reaches its peak. However according to the monitoring stats, it should be able to handle connections well above that. Here is the output for mysqltuner >> MySQLTuner 1.7.1 - Major Hayden <major@mhtx.net> >> Bug reports, feature requests, and downloads at http://mysqltuner.com/ >> Run

How to increase ulimit in Docker in Elastic Beanstalk?

泪湿孤枕 提交于 2021-02-19 08:52:16
问题 I would like to increase ulimit in Docker in Elastic Beanstalk to run some apps. I know that I need to increase ulimit of Docker host and restart docker service but cannot find a way to do it. I wrote following .ebextensions/01limits.config but still cannot increase ulimit. commands: 01limits: command: echo -e "#commands\nroot soft nofile 65536\nroot hard nofile 65536\n* soft nofile 65536\n* hard nofile 65536" >> /etc/security/limits.conf 02restartdocker: command: service docker restart ADDED

HTTPS on Elastic Beanstalk (Docker Multi-container)

家住魔仙堡 提交于 2021-02-19 08:38:38
问题 I've been looking around and haven't found much content with regards to a best practice when it comes to setting up HTTPS/SSL on Amazon Elastic Beanstalk with a Multi-container Docker environment. There is a bunch of stuff when it comes to single container configuration, but nothing when it comes to multi-container. My Dockerrun.aws.json looks like this: { "AWSEBDockerrunVersion": 2, "volumes": [ { "name": "app-frontend", "host": { "sourcePath": "/var/app/current/app-frontend" } }, { "name":

AWS Cloudwatch Event Rule - Invoke Lambda - with Parameter

那年仲夏 提交于 2021-02-19 08:34:19
问题 I am using AWS Clouwatch Event Rule to invoke a python lambda function based on Cron Schedule which is working fine.Now can I pass parameter into this lambda function from cloudwatch even rule using AWS Cloudformation? Could you please guide? Please see below my cfn template : Step1 : parameter.Schedule=cron(0 21 ? * * *) Step 2: "Schedule": { "Description": "Schedule for the Lambda function (cron or rate)", "Type": "String" }, Step 3: "funcInvokeRule": { "Type": "AWS::Events::Rule",