cloudtools / cloudtools/troposphere

Windows instance cloudformation.InitService

Open
#490 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

As per AWS' example [here](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-init.html):

```
"services" : {
"windows" : {
"cfn-hup" : {
"enabled" : "true",
"ensureRunning" : "true",
"files" : ["c:\\cfn\\cfn-hup.conf", "c:\\cfn\\hooks.d\\cfn-auto-reloader.conf"]
}
}
}
```

That would translate to:

```
services=cloudformation.InitServices({
# ***** Needs something here for "windows" *****
"cfn-hup": cloudformation.InitService(
enabled=True,
ensureRunning=True,
files=["c:\\cfn\\cfn-hup.conf", "c:\\cfn\\hooks.d\\cfn-auto-reloader.conf"]
)
# ***** End of "windows" section *****
})
```

... Looks like for Windows servers, you can't nest a cloudformation.service inside cooudformation.services directly.

Also - [here's a JSON example](https://github.com/jsmickey/cloudformation) of a Windows instance that does not cfn2py properly because of it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.