BCD stack create fails

Hello,

I'm trying to use BCD 3.3.0 to create a bonita stack on aws,

I run the following command 

bcd -y -s scenarios/euwest1_performance.yml stack create deploy

The scenario is configured in this way (first lines):

bcd_provider: aws
bcd_stack_id: test_uswest2_enrico

configuration: aws_vars

 

I get the following error.

What I'm doing wrong?

Thanks!

Initializing provider plugins...
- Checking for available provider plugins...


STDERR:


Provider "aws" v1.60.0 is not compatible with Terraform 0.12.28.

Provider version 2.7.0 is the earliest compatible version. Select it with
the following version constraint:

        version = "~> 2.7"

Terraform checked all of the plugin versions matching the given constraint:
    ~> 1.11

Consult the documentation for this provider for more information on
compatibility between provider and Terraform versions.


Warning: Skipping backend initialization pending configuration upgrade

The root module configuration contains errors that may be fixed by running the
configuration upgrade tool, so Terraform is skipping backend initialization.
See below for more information.


Warning: Interpolation-only expressions are deprecated

  on main.tf line 3, in provider "aws":
   3:   region                  = "${var.region}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 22 more similar warnings elsewhere)


Error: incompatible provider version

 

Error: Invalid argument name

  on main.tf line 30, in resource "aws_instance" "database":
  30:     "bcd:type"        = "database"

Argument names must not be quoted.

 

MSG:

non-zero return code

[10:29:35.241] PLAY RECAP ****************************************************************************************************
localhost                  : ok=6    changed=1    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0

[10:29:35.303] ERROR: Aborting! Command <stack-create> returned non-zero exit code <2>

Hi enrico,

first of all, ensure all you are using is in 3.3.0 version (client, controller and volume): 

 

11:54:32  [bcd-lib] bcd -s /home/bonita/bonita-continuous-delivery/scenarios/scenario-7111-ACM-ec2.yml -y --extra-vars bcd_stack_id=demo_internalacm_pr_1_7111 stack create
[Pipeline] sh
11:54:33  ___________________________________________________________________________________________________________
11:54:33  Bonita Continuous Delivery for Jenkins!
11:54:33  Client     : 3.3.0
11:54:33  License    : 1.3.2
11:54:33  Controller : 3.3.0 (561dbd3)
11:54:33  Volume     : 3.3.0 (561dbd3)

Hello,

As @laurent.leseigneur already mentioned, make sure to use the "quay.io/bonitasoft/bcd-controller:3.3.0" Docker image for the BCD controller, ie. ensure you have "image: quay.io/bonitasoft/bcd-controller:3.3.0" in your "docker-compose" file if you are starting the controller that way.

Using the "quay.io/bonitasoft/bcd-controller:latest" (or "quay.io/bonitasoft/bcd-controller") Docker image of the controller with the BCD 3.3.0 distribution will raise such incompatibility errors.

HTH

Thanks!

Lesson learned: in the docker compose file always put the controller version, i.e.:

image: quay.io/bonitasoft/bcd-controller:3.3.0

this is required since if you don't do a `docker pull` you don't know which version in behind this *latest*

got it, thanks