This project is mirrored from https://:*****@github.com/hashicorp/terraform.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 21 Jan, 2020 1 commit
  2. 17 Jan, 2020 3 commits
  3. 12 Nov, 2019 1 commit
  4. 01 Nov, 2019 17 commits
    • Paddy Carver's avatar
      OK but run the tests this time. · 8a8b1f6c
      Paddy Carver authored
      Fix some panics because I didn't run _all_ the tess, like a dolt.
      8a8b1f6c
    • Paddy Carver's avatar
      Fix import errors. · 415553a3
      Paddy Carver authored
      Introduced some import errors while rebasing. Now they're fixed.
      415553a3
    • Paddy Carver's avatar
      Add documentation for provider_meta. · ee169129
      Paddy Carver authored
      ee169129
    • Paddy Carver's avatar
      Finish tests, fix some error subjects. · af53898e
      Paddy Carver authored
      af53898e
    • Paddy Carver's avatar
      Flesh out tests a bit. · 2ab136ee
      Paddy Carver authored
      2ab136ee
    • Paddy Carver's avatar
      Add support for data sources with ProviderMeta. · c2e05085
      Paddy Carver authored
      Make sure that ProviderMeta gets sent to providers for RPC calls for
      data sources.
      c2e05085
    • Paddy Carver's avatar
      Add test that ProviderMeta is set on Destroy. · 0b255a0d
      Paddy Carver authored
      Test to make sure that destroy ApplyResourceChange requests get the
      ProviderMeta field set during RPC.
      0b255a0d
    • Paddy Carver's avatar
      Add support for refresh to ProviderMeta. · be24de00
      Paddy Carver authored
      Make sure to pass ProviderMeta when doing refresh RPC calls.
      be24de00
    • Paddy Carver's avatar
      Set ProviderMeta during PlanResourceChange. · 648b7cf2
      Paddy Carver authored
      Set the ProviderMeta value when planning resource changes, and add a
      test to ensure that it's getting set properly.
      648b7cf2
    • Paddy Carver's avatar
      Start supporting ProviderMeta on all RPC calls. · 21e296aa
      Paddy Carver authored
      We want ProviderMeta information to be available to the provider during
      all the RPC calls, so extend the protocol to account for that, and fill
      out all the needed methods.
      21e296aa
    • Paddy Carver's avatar
      First provider_meta test written. · 0829b0d4
      Paddy Carver authored
      Figure out how to test provider_meta, and write our first test, a basic
      check that the value will be delivered as part of the
      ApplyResourceChange request when set. Still a lot of test cases that
      need testing.
      0829b0d4
    • Paddy Carver's avatar
      Pass provider meta on destroy. · 25043e4d
      Paddy Carver authored
      We weren't passing provider meta information on destroy, now we attach
      it to nodes for resource destruction, which should let it get sent along
      as necessary.
      25043e4d
    • Paddy Carver's avatar
      Make ProviderMeta available in the SDK. · 9d4724cb
      Paddy Carver authored
      9d4724cb
    • Paddy Carver's avatar
      Various bug fixes. · be685521
      Paddy Carver authored
      Actually initialize the ProviderMetas map for the Module when calling
      configs.NewModules so we don't panic.
      
      Check the NodeValidatableResource implements
      GraphNodeAttachProviderMetaConfigs.
      
      When calling terraform.loadProviderSchemas, actually set the
      ProviderMeta block.
      
      Add ProviderMeta to state. For some reason? I don't know why.
      
      Fix the ProviderTransformer to use the ProviderConfig.Type instead of
      String() output for the provider when looking up the ProviderMeta to
      use.
      be685521
    • Paddy Carver's avatar
      Better apply-time errors. · 0585dd24
      Paddy Carver authored
      Now if a provider doesn't support provider_meta and somehow we miss that
      at validation time, the user will get an error with more details and
      pointing to the specific provider_meta declaration that is a problem.
      0585dd24
    • Paddy Carver's avatar
      Support for validating provider_meta block. · b1845d8b
      Paddy Carver authored
      Add the ProviderMeta field to the EvalValidateResource type so we can
      check that the HCL for the resource's provider's provider_meta block is
      valid.
      
      Add a code note about why we're doing this in the resource block instead
      of somewhere that makes more sense.
      b1845d8b
    • Paddy Carver's avatar
      First implementation of module attribution. · 93516ad8
      Paddy Carver authored
      A pass at implementing module attribution ("provider_meta blocks in the
      terraform block", whatever, it's for module attribution).
      
      The general idea is that we're adding a new ProviderMeta struct to our
      configs package, which is then added to Files, Modules, and parsed as
      part of the terraform block.
      
      The configs.Config type then makes that available to the
      terraform.ProviderTransformer type, which is already scoped by module.
      It picks out the ProviderMeta for the provider we need in its Transform
      method, and checks to see if the node it's working on implements the
      terraform.GraphNodeAttachProviderMetaConfigs interface, which is a new
      interface we're adding. It has only one method:
      AttachProviderMetaConfigs, which is passed a *configs.ProviderMeta.
      
      We implement this on the terraform.NodeAbstractResource type, storing
      the passed *configs.ProviderMeta in a new property on that struct.
      
      That struct is eventually made available to the
      terraform.NodeApplyableResource...
      93516ad8
  5. 31 Oct, 2019 6 commits
    • tf-release-bot's avatar
      Cleanup after v0.12.13 release · 9bd823bc
      tf-release-bot authored
      9bd823bc
    • tf-release-bot's avatar
      v0.12.13 · 5cb45963
      tf-release-bot authored
      5cb45963
    • Pam Selle's avatar
      Merge pull request #23185 from scott1138/patch-1 · 5070ab79
      Pam Selle authored
      Update taint docs - for_each
      5070ab79
    • Martin Atkins's avatar
      Update CHANGELOG.md · 6afb82ee
      Martin Atkins authored
      6afb82ee
    • Martin Atkins's avatar
      backend/remote: Support HCL variable values in local operations · 8f274090
      Martin Atkins authored
      For remote operations, the remote system (Terraform Cloud or Enterprise)
      writes the stored variable values into a .tfvars file before running the
      remote copy of Terraform CLI.
      
      By contrast, for operations that only run locally (like
      "terraform import"), we fetch the stored variable values from the remote
      API and add them into the set of available variables directly as part
      of creating the local execution context.
      
      Previously in the local-only case we were assuming that all stored
      variables are strings, which isn't true: the Terraform Cloud/Enterprise UI
      allows users to specify that a particular variable is given as an HCL
      expression, in which case the correct behavior is to parse and evaluate
      the expression to obtain the final value.
      
      This also addresses a related issue whereby previously we were forcing
      all sensitive values to be represented as a special string "<sensitive>".
      That leads to type checking errors for any variable specified as h...
      8f274090
    • Martin Atkins's avatar
      backend/remote: Unlock workspace if Context fails · 9f9f2209
      Martin Atkins authored
      Previously any error case in the Context method would cause us to leave
      the remote workspace locked on exit, requiring manual action to unlock it.
      9f9f2209
  6. 30 Oct, 2019 3 commits
  7. 29 Oct, 2019 4 commits
  8. 28 Oct, 2019 5 commits