Skip to content

Commit

Permalink
deploy action changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smohiudd committed Dec 14, 2023
1 parent c55f37e commit 9b36007
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/actions/terraform-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
if [[ -z "${{ inputs.script_path }}" ]]; then
./scripts/sync-env.sh ${{ inputs.env_aws_secret_name }}
else
python ${{ inputs.script_path }} --secret-id ${{ inputs.env_aws_secret_name }} --stack-names ${{ inputs.backend_stack_name}}
python ${{ inputs.script_path }} --secret-id ${{ inputs.env_aws_secret_name }} --stack-names ${{ inputs.auth_stack_name}},${{ inputs.backend_stack_name}}
source .env
echo "PREFIX=data-pipeline-$STAGE" >> ${{ inputs.env-file }}
fi
Expand Down
54 changes: 27 additions & 27 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,38 @@ module "custom_policy" {
}


data "aws_subnets" "private" {
filter {
name = "vpc-id"
values = [var.vector_vpc]
}
# data "aws_subnets" "private" {
# filter {
# name = "vpc-id"
# values = [var.vector_vpc]
# }

tags = {
"Scope" = "private"
}
}
# tags = {
# "Scope" = "private"
# }
# }

resource "aws_security_group" "vector_sg" {
name = "${var.prefix}_veda_vector_sg"
vpc_id = var.vector_vpc
# resource "aws_security_group" "vector_sg" {
# name = "${var.prefix}_veda_vector_sg"
# vpc_id = var.vector_vpc

egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
}
# egress {
# from_port = 0
# to_port = 0
# protocol = "-1"
# cidr_blocks = ["0.0.0.0/0"]
# ipv6_cidr_blocks = ["::/0"]
# }
# }

resource "aws_vpc_security_group_ingress_rule" "vector_rds_ingress" {
security_group_id = var.vector_security_group
# resource "aws_vpc_security_group_ingress_rule" "vector_rds_ingress" {
# security_group_id = var.vector_security_group

from_port = 5432
to_port = 5432
ip_protocol = "tcp"
referenced_security_group_id = aws_security_group.vector_sg.id
}
# from_port = 5432
# to_port = 5432
# ip_protocol = "tcp"
# referenced_security_group_id = aws_security_group.vector_sg.id
# }

resource "local_file" "mwaa_variables" {
content = templatefile("${path.module}/mwaa_environment_variables.tpl",
Expand Down

0 comments on commit 9b36007

Please sign in to comment.