Skip to content

Commit 4717a89

Browse files
committed
Merge branch 'tf_small_fix' into 'master'
DLE AMI search criteria fix See merge request postgres-ai/terraform-postgres-ai-database-lab!37
2 parents 2646310 + aaeb424 commit 4717a89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

role.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "aws_iam_role" "db_lab_engine_role" {
2727
Resource = "arn:aws:s3:::${var.source_pgdump_s3_bucket}"
2828
},
2929
{
30-
Action = ["s3:GetObject"]
30+
Action = ["s3:GetObject","s3:GetObjectAcl"]
3131
Effect = "Allow"
3232
Resource = "arn:aws:s3:::${var.source_pgdump_s3_bucket}/*" # Grant read access to entire bucket
3333
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "aws_deploy_region" {
2020

2121
variable "aws_ami_owner" {
2222
description = "Filter for the AMI owner"
23-
default = "self"
23+
default = "005923036815" # Postgres.ai account publishes public AMI for DLE
2424
}
2525
variable "aws_deploy_ec2_instance_type" {
2626
description = "Type of EC2 instance"

0 commit comments

Comments
 (0)