 module.exports     = class GroupStackSettings extends kd.View
 
   StacksCustomViews.mixin @prototype
-
-  # This will be used if stack template is not defined yet
-  defaultTemplate = """
-  {
-    "provider": {
-      "aws": {
-        "access_key": "${var.access_key}",
-        "secret_key": "${var.secret_key}",
-        "region": "ap-northeast-1"
-      }
-    },
-    "resource": {
-      "aws_instance": {
-        "example": {
-          "instance_type": "t2.micro",
-          "ami": "ami-936d9d93"
-        }
-      }
-    }
-  }
-  """
 
   constructor: (options = {}, data) ->
 

    @addSubView @credentialBox = new kd.SelectBox
      name          : "credential"
      selectOptions : creds


  createOutputView: ->

    @outputView = new kd.View
    @outputView.setCss height: 'auto'

    @addSubView @outputView


  checkCredential: (callback) ->

    selected   = @credentialBox.getValue()
    credential = cred for cred in @_credentials when cred.publicKey is selected

    credential.isBootstrapped (err, state) ->
      return callback err  if err

      callback if not state then {
        message: 'Credential is not bootstrapped yet.'
      } else null


  fetchData: (callback) ->

    steps.first()


  createCredentialsBox: ->

    creds = ({title: c.title, value: c.publicKey} for c in @_credentials)
