amazon-web-services

Error creating IAM Role. MalformedPolicyDocument: Has prohibited field Resource. Terraform

南笙酒味 提交于 2021-02-10 06:28:06
问题 I have seen several links, but I have to see an example. I have: resource "aws_iam_role" "role" { name = "role" assume_role_policy = <<-EOF { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1590217939125", "Action": "s3:*", "Effect": "Allow", "Resource": "arn:aws:s3:::wwe" }, { "Sid": "Stmt1590217939125", "Action": "s3:*", "Effect": "Allow", "Resource": "arn:aws:s3:::wwe/*" }, { "Sid": "Stmt1577967806846", "Action": [ "secretsmanager:DescribeSecret", "secretsmanager:GetRandomPassword",

Configuring nginx config files in AWS elasticbeanstalk with .ebextensions not found

白昼怎懂夜的黑 提交于 2021-02-10 06:23:06
问题 I am trying to enable https to my springboot webserver backend deployed on AWS elastic beanstalk with a self-signed SSL. I followed online tutorials and guides to change my nginx config with a new https-instance.config. files: /etc/nginx/conf.d/myconf.conf: mode: "conf" owner: root group: root content: | # HTTPS server server { listen 443; server_name localhost; ssl on; ssl_certificate /etc/pki/tls/certs/server.crt; ssl_certificate_key /etc/pki/tls/certs/server.key; ssl_prefer_server_ciphers

Route 53 alias record not working?

▼魔方 西西 提交于 2021-02-10 05:13:33
问题 I previously had a website working on AWS. It was created & registered with AWS. It was setup in the hosted zone and point to an EC2 instance. Everything was working fine. I got "smart" and created a load balancer, which pointed to the EC2 instance, and then I deleted the previous hosted zone record (and associated recordset) and re-added the hosted zone record which would point to the load balancer. After much googling I determined I needed to add an "A" record, make it an alias and point it

Route 53 alias record not working?

拟墨画扇 提交于 2021-02-10 05:12:33
问题 I previously had a website working on AWS. It was created & registered with AWS. It was setup in the hosted zone and point to an EC2 instance. Everything was working fine. I got "smart" and created a load balancer, which pointed to the EC2 instance, and then I deleted the previous hosted zone record (and associated recordset) and re-added the hosted zone record which would point to the load balancer. After much googling I determined I needed to add an "A" record, make it an alias and point it

Terraform using IAM role assume

大城市里の小女人 提交于 2021-02-10 05:07:59
问题 I have been using access/secret keys with terraform to create/manage our infrastructure in AWS. However, I am trying to switch to using IAM role instead. I should be able to use a role in my account and assume the role in another account and should be able to run plan, apply etc to build infra in the other account. Any ideas, please suggest. So far, I am testing with https://www.terraform.io/docs/providers/aws/, but for some reason, it is not working for me or the instructions are not clear

Fn::ImportValue does not match type {Array}

两盒软妹~` 提交于 2021-02-10 04:47:42
问题 I faced an issue with using the export and import functionality in CloudFormation. When I tried to import a value which actually is a list (array) I received the following error message "does not match type {Array}". vpc.yaml (snippet) PrivateSubnets: Description: A list of the private subnets Value: !Join [",", [!Ref PrivateSubnetOne, !Ref PrivateSubnetTwo]] Export: Name: !Join ["-", [!Ref "Environment", "PrivateSubnets"] ] pipeline.yaml (snippet) Subnets: Fn::ImportValue: !Sub "$

Fn::ImportValue does not match type {Array}

删除回忆录丶 提交于 2021-02-10 04:47:39
问题 I faced an issue with using the export and import functionality in CloudFormation. When I tried to import a value which actually is a list (array) I received the following error message "does not match type {Array}". vpc.yaml (snippet) PrivateSubnets: Description: A list of the private subnets Value: !Join [",", [!Ref PrivateSubnetOne, !Ref PrivateSubnetTwo]] Export: Name: !Join ["-", [!Ref "Environment", "PrivateSubnets"] ] pipeline.yaml (snippet) Subnets: Fn::ImportValue: !Sub "$

No module named 'application' Error while deploying simple web app to Elastic Beanstalk

放肆的年华 提交于 2021-02-10 03:27:42
问题 I am deploying a web app to elastic beanstalk using this tutorial and the same 'application.py' file they have: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html#python-flask-setup-venv I get a 502 error when going to the site, and degraded/severe health on the environment. When I check the logs, I see this (which I assume is the root of the problem): Jun 19 22:05:18 ip-172-31-15-237 web: File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in

No module named 'application' Error while deploying simple web app to Elastic Beanstalk

喜夏-厌秋 提交于 2021-02-10 03:27:41
问题 I am deploying a web app to elastic beanstalk using this tutorial and the same 'application.py' file they have: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html#python-flask-setup-venv I get a 502 error when going to the site, and degraded/severe health on the environment. When I check the logs, I see this (which I assume is the root of the problem): Jun 19 22:05:18 ip-172-31-15-237 web: File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in

EMR 5.21 , Spark 2.4 - Json4s Dependency broken

删除回忆录丶 提交于 2021-02-09 20:57:35
问题 Issue In EMR 5.21 , Spark - Hbase integration is broken. df.write.options().format().save() fails. Reason is json4s-jackson version 3.5.3 in spark 2.4 , EMR 5.21 it works fine in EMR 5.11.2 , Spark 2.2 , son4s-jackson version 3.2.11 Problem is this is EMR so i cant rebuild spark with lower json4s . is there any workaround ? Error py4j.protocol.Py4JJavaError: An error occurred while calling o104.save. : java.lang.NoSuchMethodError: org.json4s.jackson.JsonMethods$.parse(Lorg/json4s/JsonInput;Z