Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/provisioned_concurrency/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
vy = {
source = "nsbno/vy"
version = "0.3.1"
version = "0.4.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sqs/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
vy = {
source = "nsbno/vy"
version = "0.3.1"
version = "0.4.0"
}
}
}
Expand Down
35 changes: 35 additions & 0 deletions examples/vpc/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
data "vy_artifact_version" "this" {
application = "user-service"
}

module "account_metadata" {
source = "github.com/nsbno/terraform-aws-account-metadata?ref=0.3.1"
}

module "lambda" {
source = "../../"

name = "get-users"

artifact_type = "s3"
artifact = data.vy_artifact_version.this

runtime = "python3.11"
handler = "handler.main"

subnet_ids = module.account_metadata.network.private_subnet_ids
security_group_ids = [aws_security_group.lambda_security_group.id]
}

resource "aws_security_group" "lambda_security_group" {
name = "user-service-sg"
description = "Security group for Lambda function user-service"
vpc_id = module.account_metadata.network.vpc_id

egress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
}
12 changes: 12 additions & 0 deletions examples/vpc/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
terraform {
required_providers {
vy = {
source = "nsbno/vy"
version = "0.4.0"
}
}
}

provider "vy" {
environment = "test"
}