This pull request adds a spec field to the agent type model. For now, the spec will only contain an agent_name_settings field, with the following properties:
assignment_origin: a string to specify if agents will have their names assigned by AWS STS (assignment_origin_aws_sts) or by themselves (assignment_origin_agent). The default is assignment_origin_agent.
release_after: number of seconds to hold the agent name after its disconnection. By default, this is 0.
aws: an object field to specify the account_id and role_name_patterns when assignment_origin_aws_sts is used.
Here's an example of an agent type with assignment_origin_agent:
The create command changed to include four new flags:
--aws-account-id string required if -o AWS_STS is used; AWS account ID to allow registrations
--aws-roles string required if -o AWS_STS is used; comma-separated list of AWS role names
-o, --name-assignment-origin string from where agents will get their names when they register. Possible values: [assignment_origin_agent, assignment_origin_aws_sts] (default "assignment_origin_agent")
-r, --release-name-after int how long to hold the agent name after disconnection, in seconds; if not specified, 0 is used.
Support for the SelfHostedAgentType type was added to the apply command.
The get command command was updated to reflect the changes in the agent type model.
This pull request adds a spec field to the agent type model. For now, the spec will only contain an
agent_name_settings
field, with the following properties:assignment_origin
: a string to specify if agents will have their names assigned by AWS STS (assignment_origin_aws_sts
) or by themselves (assignment_origin_agent
). The default isassignment_origin_agent
.release_after
: number of seconds to hold the agent name after its disconnection. By default, this is 0.aws
: an object field to specify theaccount_id
androle_name_patterns
whenassignment_origin_aws_sts
is used.Here's an example of an agent type with
assignment_origin_agent
:And here's an example of a
assignment_origin_aws_sts
agent type:Changes in commands
create
command changed to include four new flags:SelfHostedAgentType
type was added to theapply
command.get
command command was updated to reflect the changes in the agent type model.