splunk / splunk-aws-cloudformation

AWS CloudFormation templates for Splunk distributed cluster deployment
Apache License 2.0
109 stars 66 forks source link

Error in [MasterNode] when creating using template #16

Open ChristilawD opened 8 years ago

ChristilawD commented 8 years ago

So, trying to use the template and wasn't able to even get it going. Information below. Not exactly sure what the issue is, so any assistance would be great.

I am logged into our account as an Admin with full access (have run templates before) so I know it's not an access issue.

Thanks!!!

Template location: https://splunk-cloud-us-west-2.s3.amazonaws.com/cloudformation-templates/splunk_cluster.template

Region: US-West-2

Template Variables:

Stack name - {Name} CIDRBlock - 0.0.0.0/0 ClusterSecurityKey - {Key} ClusterSize - 3 HostedZoneName: [Blank] InstanceType - c4.xlarge KeyName - {KeyName} SplunkLicenseBucket - {BucketName} SplunkLicensePath - {LicenseURL} Subdomain - [Blank] SubnetCount - 2 SubnetIds - subnet-{ID}, subnet-{ID} VpcId - vpc-{ID}

Console Error: Template validation error: Template format error: Unresolved resource dependencies [MasterNode] in the Resources block of the template

**MasterNode section from template**:

    "MasterNode" : {
      "Type" : "AWS::CloudFormation::Stack",
      "Condition": "AddLicenseMaster",
      "Metadata" : {
        "Comment" : "Splunk cluster master node + license master."
      },
      "Properties" : {
        "TemplateURL" : { "Fn::Join" : ["/", [{ "Fn::FindInMap" : [ "AWSRegion2s3Bucket", { "Ref" : "AWS::Region" }, "s3Bucket" ]},
                          "cloudformation-templates", "splunk_server.template" ]]},
        "Parameters" : {
          "VpcId"          : { "Ref" : "VpcId" },
          "SubnetId"       : { "Fn::Select" : [ "0", { "Ref" : "SubnetIds" } ] },
          "InstanceType"   : { "Ref" : "InstanceType" },
          "KeyName"        : { "Ref" : "KeyName" },
          "SecurityGroup"  : { "Ref" : "SplunkClusterMasterSecurityGroup" },
          "ClusterSecurityKey" : { "Ref" : "ClusterSecurityKey" },
          "SplunkLicenseBucket" : { "Ref" : "SplunkLicenseBucket" },
          "SplunkLicensePath" : { "Ref" : "SplunkLicensePath" },
          "SplunkRole"     : "cluster-master",
          "ResourceName"   : "MasterNode"
        }
      }
    },

    "MasterNode" : {
      "Type" : "AWS::CloudFormation::Stack",
      "Condition": "SkipLicenseMaster",
      "Metadata" : {
        "Comment" : "Splunk cluster master node."
      },
      "Properties" : {
        "TemplateURL" : { "Fn::Join" : ["/", [{ "Fn::FindInMap" : [ "AWSRegion2s3Bucket", { "Ref" : "AWS::Region" }, "s3Bucket" ]},
                          "cloudformation-templates", "splunk_server.template" ]]},
        "Parameters" : {
          "VpcId"          : { "Ref" : "VpcId" },
          "SubnetId"       : { "Fn::Select" : [ "0", { "Ref" : "SubnetIds" } ] },
          "InstanceType"   : { "Ref" : "InstanceType" },
          "KeyName"        : { "Ref" : "KeyName" },
          "SecurityGroup"  : { "Ref" : "SplunkClusterMasterSecurityGroup" },
          "ClusterSecurityKey" : { "Ref" : "ClusterSecurityKey" },
          "SplunkRole"     : "cluster-master",
          "ResourceName"   : "MasterNode"
        }
      }
    },