Skip to content

Commit

Permalink
Examples: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
petrgazarov committed Oct 11, 2023
1 parent 5dc3e1b commit 62c89e3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/public_and_private_ecs_services/ial/ecs.sami
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ In $MainVpc
Name: python-exec-ecs-security-group
Description: Security group for python exec ECS service
Egress: allow all tcp traffic on port 443
Ingress: allow access on "tcp" protocol, {container_port} port, and limited to $ServerEcsSecurityGroup security group
Ingress: allow access on "tcp" protocol, {container_port} port and limited to $ServerEcsSecurityGroup security group.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Container definition:
Port mappings:
Container port is {container_port}. Protocol is TCP. No host port is set.
Environment:
OPENAI_API_KEY: ${openai_api_key}
ASSUMED_ROLE_SECRET_TOKEN: ${assumed_role_secret_token}
OPENAI_API_KEY: {openai_api_key}
ASSUMED_ROLE_SECRET_TOKEN: {assumed_role_secret_token}
PYTHON_EXEC_URL: {python_exec_local_service_name}.{local_dns_namespace_name}:{container_port}.
Log configuration: awslogs log driver, $ServerLogGroup log group name, and {aws_region} AWS region. The stream prefix is set to "ecs".

Expand Down
4 changes: 2 additions & 2 deletions examples/public_and_private_ecs_services/salami-lock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ version = "0.0.1"
[objects.parsed_resource]
resource_type = "aws.ec2.SecurityGroup"
logical_name = "PythonExecEcsSecurityGroup"
natural_language = "In $MainVpc\nName: python-exec-ecs-security-group\nDescription: Security group for python exec ECS service\nEgress: allow all tcp traffic on port 443\nIngress: allow access on \"tcp\" protocol, {container_port} port, and limited to $ServerEcsSecurityGroup security group"
natural_language = "In $MainVpc\nName: python-exec-ecs-security-group\nDescription: Security group for python exec ECS service\nEgress: allow all tcp traffic on port 443\nIngress: allow access on \"tcp\" protocol, {container_port} port and limited to $ServerEcsSecurityGroup security group."
referenced_resources = ["MainVpc", "ServerEcsSecurityGroup"]
referenced_variables = ["container_port"]
source_file_path = "ecs.sami"
Expand Down Expand Up @@ -401,7 +401,7 @@ version = "0.0.1"
[objects.parsed_resource]
resource_type = "aws.ecs.TaskDefinition"
logical_name = "ServerTaskDefinition"
natural_language = "Family: server\nCpu: 256, Memory: 512\nNetwork mode: awsvpc\nTask role: $ServerTaskRole\nRequires FARGATE compatibility\nExecution role: $ServerEcsExecutionRole\nContainer definition:\n Name: {server_container_name}\n Image: $ServerRepository url with the \"latest\" tag\n Memory: 512\n Cpu: 256\n Essential: True\n Port mappings:\n Container port is {container_port}. Protocol is TCP. No host port is set.\n Environment:\n OPENAI_API_KEY: ${openai_api_key}\n ASSUMED_ROLE_SECRET_TOKEN: ${assumed_role_secret_token}\n PYTHON_EXEC_URL: {python_exec_local_service_name}.{local_dns_namespace_name}:{container_port}.\n Log configuration: awslogs log driver, $ServerLogGroup log group name, and {aws_region} AWS region. The stream prefix is set to \"ecs\"."
natural_language = "Family: server\nCpu: 256, Memory: 512\nNetwork mode: awsvpc\nTask role: $ServerTaskRole\nRequires FARGATE compatibility\nExecution role: $ServerEcsExecutionRole\nContainer definition:\n Name: {server_container_name}\n Image: $ServerRepository url with the \"latest\" tag\n Memory: 512\n Cpu: 256\n Essential: True\n Port mappings:\n Container port is {container_port}. Protocol is TCP. No host port is set.\n Environment:\n OPENAI_API_KEY: {openai_api_key}\n ASSUMED_ROLE_SECRET_TOKEN: {assumed_role_secret_token}\n PYTHON_EXEC_URL: {python_exec_local_service_name}.{local_dns_namespace_name}:{container_port}.\n Log configuration: awslogs log driver, $ServerLogGroup log group name, and {aws_region} AWS region. The stream prefix is set to \"ecs\"."
referenced_resources = ["ServerTaskRole", "ServerEcsExecutionRole", "ServerRepository", "ServerLogGroup"]
referenced_variables = ["server_container_name", "container_port", "openai_api_key", "assumed_role_secret_token", "python_exec_local_service_name", "local_dns_namespace_name", "aws_region"]
source_file_path = "task_definitions.sami"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_s3_bucket/ial/bucket.sami
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@resource(aws.s3.Bucket, TestBucket)
Name: ${test_bucket_name}
Name: {test_bucket_name}

@variable(test_bucket_name, string, test-bucket-br31m11)
2 changes: 1 addition & 1 deletion examples/simple_s3_bucket/salami-lock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.0.1"
[objects.parsed_resource]
resource_type = "aws.s3.Bucket"
logical_name = "TestBucket"
natural_language = "Name: ${test_bucket_name}"
natural_language = "Name: {test_bucket_name}"
referenced_resources = []
referenced_variables = ["test_bucket_name"]
source_file_path = "bucket.sami"
Expand Down

0 comments on commit 62c89e3

Please sign in to comment.