Skip to content

dms1981/terraform-ssm-ec2-on-off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-ssm-ec2-on-off

Use AWS SSM to power EC2 instances on and off

Requirements

Name Version
terraform ~>= 1.0
aws ~> 4.0

Providers

Name Version
aws ~> 4.0

Modules

No modules.

Resources

Name Type
aws_iam_role.ssm_role resource
aws_iam_role_policy_attachment.ssm_policy_attachment resource
aws_ssm_association.start_instance resource
aws_ssm_association.stop_instance resource
aws_caller_identity.current data source
aws_iam_policy_document.dlm_lifecycle_role data source
aws_ssm_document.start_instance data source
aws_ssm_document.stop_instance data source

Inputs

Name Description Type Default Required
environment Environment name, EG. Development any n/a yes
schedule_expressions n/a map(string)
{
"start_instance": "cron(0 7 * * MON-FRI *)",
"stop_instance": "cron(0 19 * * MON-FRI *)"
}
no
service Name of service to use this module. EG. SuperCaliFragiListic any n/a yes
tags Map of tags to apply map(any) n/a yes
targets n/a map
{
"key": "tag:is-production",
"values": [
"false"
]
}
no

Outputs

No outputs.

About

Use AWS SSM to power EC2 instances on and off

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages