Creating a windows opsworks stack with terraform. Is it possible?

68 views
Skip to first unread message

Johannes Hansen

unread,
Apr 7, 2016, 3:19:20 AM4/7/16
to Terraform
I'm currently trying this config:

resource "aws_opsworks_stack" "main" {
    name = "example"
    region = "eu-west-1"
    default_availability_zone = "eu-west-1a"
    service_role_arn = "******"
    default_instance_profile_arn = "*********"
    configuration_manager_name = "Chef"
    configuration_manager_version = "12.2"
    default_os = "Microsoft Windows Server 2012 R2 Base"
    default_ssh_key_name = "jubiitag"
}

But it fails with: aws_opsworks_stack.main: ValidationException: Default Os: Microsoft Windows Server 2012 R2 Base is unsupported with Chef::11.4.

What am I doing wrong?

al...@brandwatch.com

unread,
Sep 29, 2016, 4:36:15 AM9/29/16
to Terraform
I haven't seen 12.2 listed anywhere as a Chef version that OpsWorks supports.  Try replacing with 12.  Sounds like it's not understood 12.2 and has defaulted back to 11.4, hence the error.
Reply all
Reply to author
Forward
0 new messages