Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to validate the following destination configurations #19756

Closed
sumitkgaur opened this issue Dec 27, 2018 · 2 comments
Closed

Unable to validate the following destination configurations #19756

sumitkgaur opened this issue Dec 27, 2018 · 2 comments

Comments

@sumitkgaur
Copy link

root@ip-10-1-0-193:/home/bamboo/bamboo-agent-home/xml-data/build-dir/PLT-NONPRODDEV-BUILDJOB/terraform/dev# terraform -v
Terraform v0.11.7

  • provider.aws v1.31.0

Your version of Terraform is out of date! The latest version
is 0.11.11. You can update by downloading from www.terraform.io/downloads.html

=============
Addition a lambda function notification to S3 bucket is failing

19-Dec-2018 14:27:55 * aws_s3_bucket_notification.dev-employer-user-insertion-notification: 1 error(s) occurred:
19-Dec-2018 14:27:55  
19-Dec-2018 14:27:55 * aws_s3_bucket_notification.dev-employer-user-insertion-notification: Error putting S3 notification configuration: InvalidArgument: Unable to validate the following destination configurations
19-Dec-2018 14:27:55 status code: 400, request id: B3EBEEB279883206, host id: CgRcW6tqmuWjFMofLKUFgdTN4wqmyISRQQWuYu06Ztzaj+moyu2l21Vs0Nd9dRaGQzoOQbFzCLU=

=====================================================

resource "aws_lambda_permission" "allow-bucket" {
statement_id = "AllowExecutionFromS3Bucket"
action = "lambda:InvokeFunction"
function_name = "arn:aws:lambda:ap-southeast-2:962294302145:function:startEmployerInsertion"
principal = "s3.amazonaws.com"
source_arn = "${aws_s3_bucket.dev-employer-user-insertion.arn}"
}

resource "aws_s3_bucket" "dev-employer-user-insertion" {
bucket = "dev-employer-user-insertion"
acl = ""
server_side_encryption_configuration {
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256"
}
}
}
lifecycle {
prevent_destroy = true
}
}

resource "aws_s3_bucket_notification" "dev-employer-user-insertion-notification" {
bucket = "${aws_s3_bucket.dev-employer-user-insertion.id}"

lambda_function {
lambda_function_arn = "arn:aws:lambda:ap-southeast-2:962294302145:function:startEmployerInsertion"
events = ["s3:ObjectCreated:*"]
filter_prefix = "employerInsertionUploads/"
filter_suffix = ".csv"
}
}

@ghost
Copy link

ghost commented Jan 3, 2019

This issue has been automatically migrated to hashicorp/terraform-provider-aws#7021 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#7021.

@ghost ghost closed this as completed Jan 3, 2019
@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants