Skip to content

Commit

Permalink
feat(aws-ecs): add config file example (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-acosta committed Feb 29, 2024
1 parent 8adca92 commit f66d727
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 1 deletion.
78 changes: 78 additions & 0 deletions create-an-aws-ecs-byoc-app/nuon.my_ecs_app.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
version = "v1"

[inputs]
[[inputs.input]]
name = "service_name"
description = "what to name the ECS service"
default = "api"
sensitive = false
display_name = "Service Name"

[installer]
name = "My ECS App"
description = "A demo app that runs on ECS."
slug = "my-ecs-app"
documentation_url = "https://docs.nuon.co/"
community_url = "https://join.slack.com/t/nuoncommunity/shared_invite/zt-1q323vw9z-C8ztRP~HfWjZx6AXi50VRA"
logo_url = "https://assets-global.website-files.com/62a2c1332b518a9eedc6de2f/651df2030c43865b9b16046b_Group%2048.png"
github_url = "https://github.com/nuonco"
homepage_url = "https://www.nuon.co/"
demo_url = "https://www.nuon.co/"

[sandbox]
terraform_version = "1.5.4"
[sandbox.public_repo]
directory = "aws-ecs"
repo = "nuonco/sandboxes"
branch = "main"

[runner]
runner_type = "aws-ecs"

[[components]]
name = "docker_image"
type = "docker_build"
dockerfile = "Dockerfile"
[components.public_repo]
repo = "nuonco/guides"
directory = "create-an-aws-ecs-byoc-app/components/docker-image"
branch = "main"

[[components]]
name = "ecs_service"
type = "terraform_module"
terraform_version = "1.5.3"
[components.public_repo]
repo = "nuonco/guides"
directory = "create-an-aws-ecs-byoc-app/components/ecs-service"
branch = "main"
[[components.var]]
name = "service_name"
value = "{{.nuon.install.inputs.service_name}}"
[[components.var]]
name = "cluster_arn"
value = "{{.nuon.install.sandbox.outputs.ecs_cluster.arn}}"
[[components.var]]
name = "image_url"
value = "{{.nuon.components.docker_image.image.repository.uri}}"
[[components.var]]
name = "image_tag"
value = "{{.nuon.components.docker_image.image.tag}}"
[[components.var]]
name = "app_id"
value = "{{.nuon.app.id}}"
[[components.var]]
name = "org_id"
value = "{{.nuon.org.id}}"
[[components.var]]
name = "install_id"
value = "{{.nuon.install.id}}"
[[components.var]]
name = "vpc_id"
value = "{{.nuon.install.sandbox.outputs.vpc.id}}"
[[components.var]]
name = "domain_name"
value = "api.{{.nuon.install.sandbox.outputs.public_domain.name}}"
[[components.var]]
name = "zone_id"
value = "{{.nuon.install.sandbox.outputs.public_domain.zone_id}}"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "nuon_app_installer" "my_ecs_app" {
app_id = nuon_app.my_ecs_app.id
name = "My ECS App"
description = "A demo app that runs on ECS."
slug = nuon_app.my_ecs_app.name
slug = "my-ecs-app"
documentation_url = "https://docs.nuon.co/"
community_url = "https://join.slack.com/t/nuoncommunity/shared_invite/zt-1q323vw9z-C8ztRP~HfWjZx6AXi50VRA"
logo_url = "https://assets-global.website-files.com/62a2c1332b518a9eedc6de2f/651df2030c43865b9b16046b_Group%2048.png"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f66d727

Please sign in to comment.