GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples

Alternative to DM Actions

Open
#608 15 comments 4 reactions 0 assignees View on GitHub
Dominant language
Jinja
Stars
951
Forks
700
PR merge metrics
No merged PRs in 30d

Description

Hi,
Currently I use an action to add an instance to an instance group. Since actions are not supported in DM anymore, how can I accomplish the same result in DM itself?

```
resources.append({
'name': resource_name,
'action': 'gcp-types/compute-v1:compute.instanceGroups.addInstances',
'properties': {
'instanceGroup': instance_group_names['instancegroup1'],
'zone': vm1_zone,
'instances': [
{
'instance': '$(ref.' + vm1_name + '.selfLink)'
}
]
}
})
```
Thanks!

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.