Sha256: cd0e58c6555cce3e5461b1d9414e503794f76f0cafe61b68665e09c735d685f1
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
--- title: Conventions --- Ufo uses a set of naming conventions. This helps enforce some best practices and also allows the ufo commands to be concise. Ufo allows you to easily override or bypass the conventions if you need it. ### Service and Task Names Convention The main convention is that the ECS service and task definition name are the same by default. If you would like to override this convention then you can specify the task name. ``` ufo ship hi-web-prod --task my-task ``` This means that in the task_definition.rb you will also defined it with `my-task`. For example: ```ruby task_definition "my-task" do source "web" # this corresponds to the file in "ufo/templates/web.json.erb" variables( family: "my-task", .... ) end ``` ### Web Role Convention By convention, if the service has a container name web, you'll get prompted to create an ELB and specify a target group arn. If you would like to name a service with the word "web" in it without having to use an ELB target group then you can use the `--no-target-group-prompt`. Example: ```sh ufo ship hi-web-prod --no-target-group-prompt ``` You can also bypass the prompt by specifying the target group arn as part of the command upfront. The ELB and target group must already exist. The elb target group only gets associated when the service gets created for the first time. If the service already exists then the `--target-group` parameter just gets ignored and the ECS task simply gets updated. Example: ```bash ufo ship hi-web-prod --target-group=arn:aws:elasticloadbalancing:us-east-1:12345689:targetgroup/hi-web-prod/12345 ``` <a id="prev" class="btn btn-basic" href="{% link _docs/ufo-settings.md %}">Back</a> <a id="next" class="btn btn-primary" href="{% link _docs/next-steps.md %}">Next Step</a> <p class="keyboard-tip">Pro tip: Use the <- and -> arrow keys to move back and forward.</p>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ufo-1.6.1 | docs/_docs/conventions.md |
ufo-1.6.0 | docs/_docs/conventions.md |