atmos icon indicating copy to clipboard operation
atmos copied to clipboard

Allow component.yaml arguments for `atmos vendor pull`

Open nitrocode opened this issue 3 years ago • 3 comments

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Can we make the atmos vendor pull -c ecr take a path to put the component ?

e.g. for component

atmos vendor pull ecr \
  --path components/terraform \
  --repo-uri "github.com/cloudposse/terraform-aws-components.git//modules/ecr"

e.g. for stacks

atmos vendor pull ecr \
  --path stacks/catalog/ecr \
  --repo-uri "github.com/cloudposse/terraform-aws-components.git//stacks/catalog/ecr"

nitrocode avatar Jun 29 '22 22:06 nitrocode

@nitrocode can you expand on the use-case? If using the command line arguments, would it generate a component.yaml?

osterman avatar Apr 19 '23 15:04 osterman

The use-case is if components/terraform is not the directory where devs want to put the component. If they want to put it in components/terraform/aws for instance, they would have to do an atmos vendor pull -c ecr and then mv components/terraform/ecr components/terraform/aws/ecr

nitrocode avatar Apr 21 '23 19:04 nitrocode