Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[discussion] Other namespace support #9

Open
mbarneyjr opened this issue Mar 8, 2020 · 3 comments
Open

[discussion] Other namespace support #9

mbarneyjr opened this issue Mar 8, 2020 · 3 comments

Comments

@mbarneyjr
Copy link
Contributor

There are some CloudFormation resources that do not conform to the AWS::Service::Resource pattern. According to the CloudFormation FAQ, there could be resources that look like this: Alexa::*. In fact, there's an Alexa::ASK::Skill resource, that I don't believe former would be able to stub out for you, since it expects only the second two parts of the resource type and fills in the AWS for you

My first thoughts are:

  • to allow defining the full resource name as a parameter (i.e. former Alexa::ASK::Skill or former AWS::S3::Bucket)
  • to look for each special case as the first argument (currently only alexa I believe, so former alexa ask skill would function just like former aws s3 bucket or former s3 bucket)
  • whatever you decide is best for user experience

I came across this issue because I would like to implement autocomplete/tab-completion for the former cli. However if there will be another way to use former, such as the above suggestions, I would like to know what that is before I begin work implementing autocomplete

So this issue is to flesh out what the user experience should be for resources that are not under the AWS::* namespace

Thoughts @flomotlik?

@flomotlik
Copy link
Collaborator

How about we do it with 2 or 3 arguments, so if you enter only 2 AWS is used, if you enter 3 the first one is the namespace?

Autocomplete would be amazing. Been on the list for a while but haven't had time to get around to it yet.

@mbarneyjr
Copy link
Contributor Author

The current implementation supports 3 arguments, for sub properties:

former iam user loginprofile

@flomotlik
Copy link
Collaborator

Hmm, you're right. How about we do a two step lookup, first we see if we can find the resource with the AWS prefix and if that doesn't exist we look it up without the AWS Namespace and use the first argument as namespace? Its pretty unlikely to happen as its only so few resources.

If you have another proposal open to any other ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants