cloudposse / terraform-aws-ec2-ami-backup

Terraform module for automatic & scheduled AMI creation
https://cloudposse.com/accelerate
Other
23 stars 29 forks source link

terraform apply fails. #20

Open jarrettj opened 4 years ago

jarrettj commented 4 years ago

Hi,

Good day.

I get the following when trying to use the module:

terraform apply

Error: Unsupported argument

  on .terraform/modules/ec2.backup_website.backup_wordpress/main.tf line 108, in resource "aws_lambda_function" "ami_backup":
 108:   environment = {

An argument named "environment" is not expected here. Did you mean to define a
block of type "environment"?

Error: Unsupported argument

  on .terraform/modules/ec2.backup_website.backup_wordpress/main.tf line 131, in resource "aws_lambda_function" "ami_cleanup":
 131:   environment = {

An argument named "environment" is not expected here. Did you mean to define a
block of type "environment"?

Regards.

jarrettj commented 4 years ago

Saw a pull request for getting it to work with v0.12. Could it be the same issue?

raj-yadav9 commented 4 years ago

@jarrettj were you able to fix this? I am facing same issue.

jarrettj commented 4 years ago

No, I never pursued this further. Resorted to manual backups 😊.

From: raj-yadav9 notifications@github.com Reply to: cloudposse/terraform-aws-ec2-ami-backup reply@reply.github.com Date: Thursday, 30 July 2020 at 17:22 To: cloudposse/terraform-aws-ec2-ami-backup terraform-aws-ec2-ami-backup@noreply.github.com Cc: jarrett jordaan jarrett.l.jordaan@gmail.com, Mention mention@noreply.github.com Subject: Re: [cloudposse/terraform-aws-ec2-ami-backup] terraform apply fails. (#20)

@jarrettjhttps://github.com/jarrettj were you able to fix this? I am facing same issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cloudposse/terraform-aws-ec2-ami-backup/issues/20#issuecomment-666450597, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAF52S52GRGZDGIB54FB2QLR6GF3FANCNFSM4JHAD4HA.