-
Notifications
You must be signed in to change notification settings - Fork 2
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
26 implement aws ssm connection type #31
26 implement aws ssm connection type #31
Conversation
|
||
putParameterInput := &ssm.PutParameterInput{ | ||
Name: aws.String(remotePath), | ||
Value: aws.String(string(fileContent)), |
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 500 mb string ?:D
//TODO implement me | ||
panic("implement me") | ||
func (a *AWSSSMConnection) Info() string { | ||
return fmt.Sprintf("ssm: instance='%s', region='%s'", a.InstanceID, a.Region) |
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.
instance_id
panic("implement me") | ||
func (a *AWSSSMConnection) Connect() error { | ||
// Specify the AWS region | ||
cfg, err := config.LoadDefaultConfig(context.Background(), config.WithRegion(a.Region)) |
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.
whole connection should use same context
return fmt.Errorf("ssm: error creating AWS session: %v", err) | ||
} | ||
|
||
startSessionInput := &ssm.StartSessionInput{ |
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.
3 lines to 1; fmt
internal/provider/instance_client.go
Outdated
@@ -220,7 +220,7 @@ func (ic *InstanceClient) ReadStatus() (InstanceStatus, error) { | |||
|
|||
func (ic *InstanceClient) bootstrap() error { | |||
return ic.doActionOnce("bootstrap", ic.cl.WorkDir, func() error { | |||
return ic.runScript("bootstrap", ic.data.System.Bootstrap, ".") | |||
return ic.runScript("bootstrap", ic.data.System.Bootstrap, ic.cl.WorkDir) |
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.
why?
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.
some commands downloads temporary files, this is to ensure that it is done in dedicated directory
No description provided.