We recommend new projects start with resources from the AWS provider.
aws-native.ssm.Association
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::SSM::Association resource associates an SSM document in AWS Systems Manager with EC2 instances that contain a configuration agent to process the document.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var specificInstanceIdAssociation = new AwsNative.Ssm.Association("specificInstanceIdAssociation", new()
{
Name = "AWS-RunShellScript",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
"i-1234567890abcdef0",
},
},
},
Parameters =
{
{ "commands", new[]
{
"ls",
} },
{ "workingDirectory", new[]
{
"/",
} },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "specificInstanceIdAssociation", &ssm.AssociationArgs{
Name: pulumi.String("AWS-RunShellScript"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String("i-1234567890abcdef0"),
},
},
},
Parameters: pulumi.StringArrayMap{
"commands": pulumi.StringArray{
pulumi.String("ls"),
},
"workingDirectory": pulumi.StringArray{
pulumi.String("/"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
specific_instance_id_association = aws_native.ssm.Association("specificInstanceIdAssociation",
name="AWS-RunShellScript",
targets=[{
"key": "InstanceIds",
"values": ["i-1234567890abcdef0"],
}],
parameters={
"commands": ["ls"],
"workingDirectory": ["/"],
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const specificInstanceIdAssociation = new aws_native.ssm.Association("specificInstanceIdAssociation", {
name: "AWS-RunShellScript",
targets: [{
key: "InstanceIds",
values: ["i-1234567890abcdef0"],
}],
parameters: {
commands: ["ls"],
workingDirectory: ["/"],
},
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var specificInstanceIdAssociation = new AwsNative.Ssm.Association("specificInstanceIdAssociation", new()
{
Name = "AWS-RunShellScript",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
"i-1234567890abcdef0",
},
},
},
Parameters =
{
{ "commands", new[]
{
"ls",
} },
{ "workingDirectory", new[]
{
"/",
} },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "specificInstanceIdAssociation", &ssm.AssociationArgs{
Name: pulumi.String("AWS-RunShellScript"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String("i-1234567890abcdef0"),
},
},
},
Parameters: pulumi.StringArrayMap{
"commands": pulumi.StringArray{
pulumi.String("ls"),
},
"workingDirectory": pulumi.StringArray{
pulumi.String("/"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
specific_instance_id_association = aws_native.ssm.Association("specificInstanceIdAssociation",
name="AWS-RunShellScript",
targets=[{
"key": "InstanceIds",
"values": ["i-1234567890abcdef0"],
}],
parameters={
"commands": ["ls"],
"workingDirectory": ["/"],
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const specificInstanceIdAssociation = new aws_native.ssm.Association("specificInstanceIdAssociation", {
name: "AWS-RunShellScript",
targets: [{
key: "InstanceIds",
values: ["i-1234567890abcdef0"],
}],
parameters: {
commands: ["ls"],
workingDirectory: ["/"],
},
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var allInstanceIdsAssociation = new AwsNative.Ssm.Association("allInstanceIdsAssociation", new()
{
AssociationName = "UpdateSSMAgent",
Name = "AWS-UpdateSSMAgent",
ScheduleExpression = "cron(0 2 ? * SUN *)",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
"*",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "allInstanceIdsAssociation", &ssm.AssociationArgs{
AssociationName: pulumi.String("UpdateSSMAgent"),
Name: pulumi.String("AWS-UpdateSSMAgent"),
ScheduleExpression: pulumi.String("cron(0 2 ? * SUN *)"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String("*"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
all_instance_ids_association = aws_native.ssm.Association("allInstanceIdsAssociation",
association_name="UpdateSSMAgent",
name="AWS-UpdateSSMAgent",
schedule_expression="cron(0 2 ? * SUN *)",
targets=[{
"key": "InstanceIds",
"values": ["*"],
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const allInstanceIdsAssociation = new aws_native.ssm.Association("allInstanceIdsAssociation", {
associationName: "UpdateSSMAgent",
name: "AWS-UpdateSSMAgent",
scheduleExpression: "cron(0 2 ? * SUN *)",
targets: [{
key: "InstanceIds",
values: ["*"],
}],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var allInstanceIdsAssociation = new AwsNative.Ssm.Association("allInstanceIdsAssociation", new()
{
AssociationName = "UpdateSSMAgent",
Name = "AWS-UpdateSSMAgent",
ScheduleExpression = "cron(0 2 ? * SUN *)",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "InstanceIds",
Values = new[]
{
"*",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "allInstanceIdsAssociation", &ssm.AssociationArgs{
AssociationName: pulumi.String("UpdateSSMAgent"),
Name: pulumi.String("AWS-UpdateSSMAgent"),
ScheduleExpression: pulumi.String("cron(0 2 ? * SUN *)"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("InstanceIds"),
Values: pulumi.StringArray{
pulumi.String("*"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
all_instance_ids_association = aws_native.ssm.Association("allInstanceIdsAssociation",
association_name="UpdateSSMAgent",
name="AWS-UpdateSSMAgent",
schedule_expression="cron(0 2 ? * SUN *)",
targets=[{
"key": "InstanceIds",
"values": ["*"],
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const allInstanceIdsAssociation = new aws_native.ssm.Association("allInstanceIdsAssociation", {
associationName: "UpdateSSMAgent",
name: "AWS-UpdateSSMAgent",
scheduleExpression: "cron(0 2 ? * SUN *)",
targets: [{
key: "InstanceIds",
values: ["*"],
}],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var taggedInstancesAssociation = new AwsNative.Ssm.Association("taggedInstancesAssociation", new()
{
AssociationName = "UpdateSSMAgent",
Name = "AWS-UpdateSSMAgent",
ScheduleExpression = "rate(7 days)",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "tag:Environment",
Values = new[]
{
"Production",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "taggedInstancesAssociation", &ssm.AssociationArgs{
AssociationName: pulumi.String("UpdateSSMAgent"),
Name: pulumi.String("AWS-UpdateSSMAgent"),
ScheduleExpression: pulumi.String("rate(7 days)"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("tag:Environment"),
Values: pulumi.StringArray{
pulumi.String("Production"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
tagged_instances_association = aws_native.ssm.Association("taggedInstancesAssociation",
association_name="UpdateSSMAgent",
name="AWS-UpdateSSMAgent",
schedule_expression="rate(7 days)",
targets=[{
"key": "tag:Environment",
"values": ["Production"],
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const taggedInstancesAssociation = new aws_native.ssm.Association("taggedInstancesAssociation", {
associationName: "UpdateSSMAgent",
name: "AWS-UpdateSSMAgent",
scheduleExpression: "rate(7 days)",
targets: [{
key: "tag:Environment",
values: ["Production"],
}],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var taggedInstancesAssociation = new AwsNative.Ssm.Association("taggedInstancesAssociation", new()
{
AssociationName = "UpdateSSMAgent",
Name = "AWS-UpdateSSMAgent",
ScheduleExpression = "rate(7 days)",
Targets = new[]
{
new AwsNative.Ssm.Inputs.AssociationTargetArgs
{
Key = "tag:Environment",
Values = new[]
{
"Production",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewAssociation(ctx, "taggedInstancesAssociation", &ssm.AssociationArgs{
AssociationName: pulumi.String("UpdateSSMAgent"),
Name: pulumi.String("AWS-UpdateSSMAgent"),
ScheduleExpression: pulumi.String("rate(7 days)"),
Targets: ssm.AssociationTargetArray{
&ssm.AssociationTargetArgs{
Key: pulumi.String("tag:Environment"),
Values: pulumi.StringArray{
pulumi.String("Production"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
tagged_instances_association = aws_native.ssm.Association("taggedInstancesAssociation",
association_name="UpdateSSMAgent",
name="AWS-UpdateSSMAgent",
schedule_expression="rate(7 days)",
targets=[{
"key": "tag:Environment",
"values": ["Production"],
}])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const taggedInstancesAssociation = new aws_native.ssm.Association("taggedInstancesAssociation", {
associationName: "UpdateSSMAgent",
name: "AWS-UpdateSSMAgent",
scheduleExpression: "rate(7 days)",
targets: [{
key: "tag:Environment",
values: ["Production"],
}],
});
Coming soon!
Create Association Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Association(name: string, args?: AssociationArgs, opts?: CustomResourceOptions);
@overload
def Association(resource_name: str,
args: Optional[AssociationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Association(resource_name: str,
opts: Optional[ResourceOptions] = None,
apply_only_at_cron_interval: Optional[bool] = None,
association_name: Optional[str] = None,
automation_target_parameter_name: Optional[str] = None,
calendar_names: Optional[Sequence[str]] = None,
compliance_severity: Optional[AssociationComplianceSeverity] = None,
document_version: Optional[str] = None,
instance_id: Optional[str] = None,
max_concurrency: Optional[str] = None,
max_errors: Optional[str] = None,
name: Optional[str] = None,
output_location: Optional[AssociationInstanceAssociationOutputLocationArgs] = None,
parameters: Optional[Mapping[str, Sequence[str]]] = None,
schedule_expression: Optional[str] = None,
schedule_offset: Optional[int] = None,
sync_compliance: Optional[AssociationSyncCompliance] = None,
targets: Optional[Sequence[AssociationTargetArgs]] = None,
wait_for_success_timeout_seconds: Optional[int] = None)
func NewAssociation(ctx *Context, name string, args *AssociationArgs, opts ...ResourceOption) (*Association, error)
public Association(string name, AssociationArgs? args = null, CustomResourceOptions? opts = null)
public Association(String name, AssociationArgs args)
public Association(String name, AssociationArgs args, CustomResourceOptions options)
type: aws-native:ssm:Association
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Association Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Association resource accepts the following input properties:
- Apply
Only boolAt Cron Interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- Association
Name string - The name of the association.
- Automation
Target stringParameter Name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- Calendar
Names List<string> - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- Compliance
Severity Pulumi.Aws Native. Ssm. Association Compliance Severity - The severity level that is assigned to the association.
- Document
Version string - The version of the SSM document to associate with the target.
- Instance
Id string - The ID of the instance that the SSM document is associated with.
- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- Name string
- The name of the SSM document.
- Output
Location Pulumi.Aws Native. Ssm. Inputs. Association Instance Association Output Location - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- Parameters
Dictionary<string, Immutable
Array<string>> - Parameter values that the SSM document uses at runtime.
- Schedule
Expression string - A Cron or Rate expression that specifies when the association is applied to the target.
- Schedule
Offset int - Number of days to wait after the scheduled day to run an association.
- Sync
Compliance Pulumi.Aws Native. Ssm. Association Sync Compliance The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- Targets
List<Pulumi.
Aws Native. Ssm. Inputs. Association Target> - The targets that the SSM document sends commands to.
- Wait
For intSuccess Timeout Seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
- Apply
Only boolAt Cron Interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- Association
Name string - The name of the association.
- Automation
Target stringParameter Name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- Calendar
Names []string - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- Compliance
Severity AssociationCompliance Severity - The severity level that is assigned to the association.
- Document
Version string - The version of the SSM document to associate with the target.
- Instance
Id string - The ID of the instance that the SSM document is associated with.
- Max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- Max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- Name string
- The name of the SSM document.
- Output
Location AssociationInstance Association Output Location Args - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- Parameters map[string][]string
- Parameter values that the SSM document uses at runtime.
- Schedule
Expression string - A Cron or Rate expression that specifies when the association is applied to the target.
- Schedule
Offset int - Number of days to wait after the scheduled day to run an association.
- Sync
Compliance AssociationSync Compliance The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- Targets
[]Association
Target Args - The targets that the SSM document sends commands to.
- Wait
For intSuccess Timeout Seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
- apply
Only BooleanAt Cron Interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- association
Name String - The name of the association.
- automation
Target StringParameter Name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- calendar
Names List<String> - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- compliance
Severity AssociationCompliance Severity - The severity level that is assigned to the association.
- document
Version String - The version of the SSM document to associate with the target.
- instance
Id String - The ID of the instance that the SSM document is associated with.
- max
Concurrency String The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- max
Errors String The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- name String
- The name of the SSM document.
- output
Location AssociationInstance Association Output Location - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- parameters Map<String,List<String>>
- Parameter values that the SSM document uses at runtime.
- schedule
Expression String - A Cron or Rate expression that specifies when the association is applied to the target.
- schedule
Offset Integer - Number of days to wait after the scheduled day to run an association.
- sync
Compliance AssociationSync Compliance The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- targets
List<Association
Target> - The targets that the SSM document sends commands to.
- wait
For IntegerSuccess Timeout Seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
- apply
Only booleanAt Cron Interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- association
Name string - The name of the association.
- automation
Target stringParameter Name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- calendar
Names string[] - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- compliance
Severity AssociationCompliance Severity - The severity level that is assigned to the association.
- document
Version string - The version of the SSM document to associate with the target.
- instance
Id string - The ID of the instance that the SSM document is associated with.
- max
Concurrency string The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- max
Errors string The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- name string
- The name of the SSM document.
- output
Location AssociationInstance Association Output Location - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- parameters {[key: string]: string[]}
- Parameter values that the SSM document uses at runtime.
- schedule
Expression string - A Cron or Rate expression that specifies when the association is applied to the target.
- schedule
Offset number - Number of days to wait after the scheduled day to run an association.
- sync
Compliance AssociationSync Compliance The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- targets
Association
Target[] - The targets that the SSM document sends commands to.
- wait
For numberSuccess Timeout Seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
- apply_
only_ boolat_ cron_ interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- association_
name str - The name of the association.
- automation_
target_ strparameter_ name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- calendar_
names Sequence[str] - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- compliance_
severity AssociationCompliance Severity - The severity level that is assigned to the association.
- document_
version str - The version of the SSM document to associate with the target.
- instance_
id str - The ID of the instance that the SSM document is associated with.
- max_
concurrency str The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- max_
errors str The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- name str
- The name of the SSM document.
- output_
location AssociationInstance Association Output Location Args - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- parameters Mapping[str, Sequence[str]]
- Parameter values that the SSM document uses at runtime.
- schedule_
expression str - A Cron or Rate expression that specifies when the association is applied to the target.
- schedule_
offset int - Number of days to wait after the scheduled day to run an association.
- sync_
compliance AssociationSync Compliance The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- targets
Sequence[Association
Target Args] - The targets that the SSM document sends commands to.
- wait_
for_ intsuccess_ timeout_ seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
- apply
Only BooleanAt Cron Interval - By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.
- association
Name String - The name of the association.
- automation
Target StringParameter Name - Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of AWS Systems Manager .
- calendar
Names List<String> - The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that Change Calendar is open. For more information, see AWS Systems Manager Change Calendar .
- compliance
Severity "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "UNSPECIFIED" - The severity level that is assigned to the association.
- document
Version String - The version of the SSM document to associate with the target.
- instance
Id String - The ID of the instance that the SSM document is associated with.
- max
Concurrency String The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
If a new managed node starts and attempts to run an association while Systems Manager is running
MaxConcurrency
associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified forMaxConcurrency
.- max
Errors String The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set
MaxError
to 10%, then the system stops sending the request when the sixth error is received.Executions that are already running an association when
MaxErrors
is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, setMaxConcurrency
to 1 so that executions proceed one at a time.- name String
- The name of the SSM document.
- output
Location Property Map - An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.
- parameters Map<List<String>>
- Parameter values that the SSM document uses at runtime.
- schedule
Expression String - A Cron or Rate expression that specifies when the association is applied to the target.
- schedule
Offset Number - Number of days to wait after the scheduled day to run an association.
- sync
Compliance "AUTO" | "MANUAL" The mode for generating association compliance. You can specify
AUTO
orMANUAL
. InAUTO
mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association isCOMPLIANT
. If the association execution doesn't run successfully, the association isNON-COMPLIANT
.In
MANUAL
mode, you must specify theAssociationId
as a parameter for thePutComplianceItems
API action. In this case, compliance data is not managed by State Manager. It is managed by your direct call to thePutComplianceItems
API action.By default, all associations use
AUTO
mode.- targets List<Property Map>
- The targets that the SSM document sends commands to.
- wait
For NumberSuccess Timeout Seconds The number of seconds the service should wait for the association status to show "Success" before proceeding with the stack execution. If the association status doesn't show "Success" after the specified number of seconds, then stack creation fails.
When you specify a value for the
WaitForSuccessTimeoutSeconds
, drift detection for your AWS CloudFormation stack’s configuration might yield inaccurate results. If drift detection is important in your scenario, we recommend that you don’t includeWaitForSuccessTimeoutSeconds
in your template.
Outputs
All input properties are implicitly available as output properties. Additionally, the Association resource produces the following output properties:
- Association
Id string - Unique identifier of the association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Association
Id string - Unique identifier of the association.
- Id string
- The provider-assigned unique ID for this managed resource.
- association
Id String - Unique identifier of the association.
- id String
- The provider-assigned unique ID for this managed resource.
- association
Id string - Unique identifier of the association.
- id string
- The provider-assigned unique ID for this managed resource.
- association_
id str - Unique identifier of the association.
- id str
- The provider-assigned unique ID for this managed resource.
- association
Id String - Unique identifier of the association.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
AssociationComplianceSeverity, AssociationComplianceSeverityArgs
- Critical
- CRITICAL
- High
- HIGH
- Medium
- MEDIUM
- Low
- LOW
- Unspecified
- UNSPECIFIED
- Association
Compliance Severity Critical - CRITICAL
- Association
Compliance Severity High - HIGH
- Association
Compliance Severity Medium - MEDIUM
- Association
Compliance Severity Low - LOW
- Association
Compliance Severity Unspecified - UNSPECIFIED
- Critical
- CRITICAL
- High
- HIGH
- Medium
- MEDIUM
- Low
- LOW
- Unspecified
- UNSPECIFIED
- Critical
- CRITICAL
- High
- HIGH
- Medium
- MEDIUM
- Low
- LOW
- Unspecified
- UNSPECIFIED
- CRITICAL
- CRITICAL
- HIGH
- HIGH
- MEDIUM
- MEDIUM
- LOW
- LOW
- UNSPECIFIED
- UNSPECIFIED
- "CRITICAL"
- CRITICAL
- "HIGH"
- HIGH
- "MEDIUM"
- MEDIUM
- "LOW"
- LOW
- "UNSPECIFIED"
- UNSPECIFIED
AssociationInstanceAssociationOutputLocation, AssociationInstanceAssociationOutputLocationArgs
- S3Location
Pulumi.
Aws Native. Ssm. Inputs. Association S3Output Location S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
- S3Location
Association
S3Output Location S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
- s3Location
Association
S3Output Location S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
- s3Location
Association
S3Output Location S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
- s3_
location AssociationS3Output Location S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
- s3Location Property Map
S3OutputLocation
is a property of the InstanceAssociationOutputLocation property that specifies an Amazon S3 bucket where you want to store the results of this request.
AssociationS3OutputLocation, AssociationS3OutputLocationArgs
- Output
S3Bucket stringName - The name of the S3 bucket.
- Output
S3Key stringPrefix - The S3 bucket subfolder.
- Output
S3Region string - The AWS Region of the S3 bucket.
- Output
S3Bucket stringName - The name of the S3 bucket.
- Output
S3Key stringPrefix - The S3 bucket subfolder.
- Output
S3Region string - The AWS Region of the S3 bucket.
- output
S3Bucket StringName - The name of the S3 bucket.
- output
S3Key StringPrefix - The S3 bucket subfolder.
- output
S3Region String - The AWS Region of the S3 bucket.
- output
S3Bucket stringName - The name of the S3 bucket.
- output
S3Key stringPrefix - The S3 bucket subfolder.
- output
S3Region string - The AWS Region of the S3 bucket.
- output_
s3_ strbucket_ name - The name of the S3 bucket.
- output_
s3_ strkey_ prefix - The S3 bucket subfolder.
- output_
s3_ strregion - The AWS Region of the S3 bucket.
- output
S3Bucket StringName - The name of the S3 bucket.
- output
S3Key StringPrefix - The S3 bucket subfolder.
- output
S3Region String - The AWS Region of the S3 bucket.
AssociationSyncCompliance, AssociationSyncComplianceArgs
- Auto
- AUTO
- Manual
- MANUAL
- Association
Sync Compliance Auto - AUTO
- Association
Sync Compliance Manual - MANUAL
- Auto
- AUTO
- Manual
- MANUAL
- Auto
- AUTO
- Manual
- MANUAL
- AUTO
- AUTO
- MANUAL
- MANUAL
- "AUTO"
- AUTO
- "MANUAL"
- MANUAL
AssociationTarget, AssociationTargetArgs
- Key string
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- Values List<string>
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- Key string
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- Values []string
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- key String
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- values List<String>
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- key string
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- values string[]
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- key str
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- values Sequence[str]
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
- key String
- User-defined criteria for sending commands that target managed nodes that meet the criteria.
- values List<String>
User-defined criteria that maps to
Key
. For example, if you specifiedtag:ServerRole
, you could specifyvalue:WebServer
to run a command on instances that include EC2 tags ofServerRole,WebServer
.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.