Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFS-7074 - Terraform Provider AWS - QuickSight Integration #24

Conversation

a11e99
Copy link
Contributor

@a11e99 a11e99 commented Jul 19, 2021

To test:
docker run --rm -ti -v $PWD:/code golang:1.16-buster bash -c "cd /code; go build -o bin/linux_amd64/terraform-provider-candidaws.exe --mod=vendor"

The above build command (via Docker) should exit cleanly and produce the desired Terraform provider binary.

Notes:
Additional testing possible once INC000401314336 is resolved.

Sample Terraform using provider:

terraform {
  required_version = ">= 0.12.31"
  required_providers {
    aws       = ">= 3.3.0"
    candidaws = "1.1.6"
  }
}

provider candidaws {
  region = "us-gov-west-1"
  alias = "test"
}
provider aws {
  region = "us-gov-west-1"
}

resource "aws_quicksight_user" "example" {
  user_name     = "USER"
  email         = "USER@example.com"
  identity_type = "QUICKSIGHT"
  user_role     = "ADMIN"
}

resource "aws_quicksight_group" "example" {
  group_name = "group-test"
}

resource "aws_quicksight_group_membership" "example" {
  provider = candidaws.test
  member_name = "USER"
  group_name = "group-test"
}

resource "aws_quicksight_namespace" "example" {
  provider = candidaws.test
  identity_store = "QUICKSIGHT"
  namespace = "namespace-test"
}

resource "aws_quicksight_namespace" "example2" {
  provider = candidaws.test
  identity_store = "QUICKSIGHT"
  namespace = "namespace-test2"
  tags = {
    Name = "test-tag"
  }
}

Addresses error:
go: inconsistent vendoring in /code:
    github.com/aws/aws-sdk-go@v1.35.8: is explicitly required in
    go.mod, but vendor/modules.txt indicates
    github.com/aws/aws-sdk-go@v1.29.24

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
            go mod vendor
@a11e99 a11e99 marked this pull request as draft July 19, 2021 18:54
@a11e99 a11e99 marked this pull request as ready for review July 19, 2021 22:04
@troy-brathwaite-cp troy-brathwaite-cp merged commit ac4e03f into candidpartners:trunk Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants