-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 #7021
Comments
Hi @sumitkgaur 👋 Sorry for the trouble here. As a general recommendation, I would add Does your configuration work if you apply it a second time after waiting or add the |
Closing due to lack of response. Please do reach out with the additional information if available and we can continue investigating. |
Hi Guys and @bflad, I'm getting the same error with bucket notifications but this time with notifications to sqs, could you help me? please I already tried adding the |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @sumitkgaur as hashicorp/terraform#19756. It was migrated here as a result of the provider split. The original body of the issue is below.
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
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
=====================================================
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"
}
}
The text was updated successfully, but these errors were encountered: