-
Notifications
You must be signed in to change notification settings - Fork 34
add-to-ECS: select profile, region, and cluster #175
Conversation
This covers: * asking for a profile name * selecting a region from a list * listing the clusters in a region
Example interaction:
|
cmd/internal/ecs/add.go
Outdated
if awsRegionFlag != "" { | ||
wf.awsRegion = awsRegionFlag | ||
err = wf.createSession() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have set this up so that if command-line arguments are provided, we do not prompt for that step at all.
The intent is that specifying all the command-line flags should be the same whether or not the program is running interactively. However, an alternative is that in interactive mode we could use the flags as the default and ask for confirmation. I'm still undecided, so feedback about when we ask for confirmation would be welcome: only at the end? At each step? Not at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about if we waited until the end to confirm, but provided a command-line flag to skip this final confirmation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look at this in more detail later, but here are a couple of quick comments.
Converting to draft until sdk v2 conversion is complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more comments. I'll do the rest of the review when the change to SDK v2 lands.
Use DescribeRegions to populate region list, but continue fallback of having a list available; this API requires AIM permissions! Check permissions on operations and attempt to report them in a friendly fashion.
if name == "" { | ||
return "" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When does this happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cluster may not have a name.
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Co-authored-by: Jed Liu <[email protected]>
Fix module import. Check for absence of any ECS clusters. UnrecognizedClientException handling.
This covers: