You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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=
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
locked and limited conversation to collaborators
Mar 30, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: