Skip to content

Commit

Permalink
Use correct image
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Sep 26, 2024
1 parent e445d18 commit 494d5e5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 5 additions & 3 deletions doc/developers_guide/developers_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

1. Make a copy of the latest template in `scripts` for the new version
2. Update the new template
3. Upload the template to S3 bucket `exasol-cf-templates` in region `eu-central-1` (prod account), e.g.:
3. Upload the template to S3 bucket `exasol-cf-templates` in region `eu-central-1` (prod account) and re-enable public read access:
```sh
aws s3 cp scripts/cloudformation_template_v1.1.0.yml s3://exasol-cf-templates/cloudformation_template_v1.1.0.yml
version=v1.1.0
aws s3 cp scripts/cloudformation_template_${version}.yml s3://exasol-cf-templates/cloudformation_template_${version}.yml
aws s3api put-object-acl --bucket exasol-cf-templates --key cloudformation_template_${version}.yml --acl public-read
```
4. Enable public read access for the uploaded file


## CI Tests

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data "aws_ami" "exasol" {

filter {
name = "name"
values = ["*${var.ami_image_name}-*"]
values = ["*${var.ami_image_name}*"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/simple_exasol_setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module "exasol" {
source = "../../"
cluster_name = "${local.project_tag}-exasol-cluster"
database_name = "exadb"
ami_image_name = "Exasol-R7.1.26-BYOL"
ami_image_name = "Exasol-R7.1.26-PAYG"
sys_user_password = var.exasol_sys_password
admin_user_password = var.exasol_admin_password
management_server_instance_type = "m5.large"
Expand Down
8 changes: 7 additions & 1 deletion test/terraform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,25 @@ func getRandomPassword() string {
}

func assertCanConnect(t *testing.T, ip string, sysPassword string) {
port := 8563
t.Logf("Checking connection to %q:%d...", ip, port)
config := exasol.NewConfig("sys", sysPassword).
Port(8563).
Port(port).
Host(ip).
ValidateServerCertificate(false)

conn, err := sql.Open("exasol", config.String())
if err != nil {
t.Error("Failed to connect to the exasol database: " + err.Error())
} else {
t.Logf("Connection to %q:%d successful", ip, port)
}
defer conn.Close()

_, err = conn.Exec("SELECT * FROM DUAL")
if err != nil {
t.Error("Failed to run query on the exasol database: " + err.Error())
} else {
t.Log("SQL query succeeded")
}
}

0 comments on commit 494d5e5

Please sign in to comment.