Skip to content

Commit

Permalink
Merge pull request #7 from smerle33/remove/packer-user
Browse files Browse the repository at this point in the history
feat(pipeline): using the infra-developer profile
  • Loading branch information
smerle33 authored Oct 3, 2024
2 parents 77298ba + 920ac48 commit d8b6675
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 119 deletions.
33 changes: 15 additions & 18 deletions Jenkinsfile_k8s
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ if (env.BRANCH_IS_PRIMARY) {
// Only trigger a daily check on the principal branch
properties([pipelineTriggers([cron('@daily')])])
}
withEnv([
"TF_VAR_aws_profile=default"
]) {
terraform(
stagingCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'staging-terraform-aws-sponsorship-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'staging-terraform-aws-sponsorship-secret-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-aws-sponsorship-backend-config'),
],
productionCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'production-terraform-aws-sponsorship-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'production-terraform-aws-sponsorship-secret-key'),

file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-aws-sponsorship-backend-config'),
],
// TODO: generate a local report to be published
// publishReports: ['jenkins-infra-data-reports/aws-sponsorship.json'],
)
}
terraform(
stagingCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'staging-terraform-aws-sponsorship-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'staging-terraform-aws-sponsorship-secret-key'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-aws-sponsorship-backend-config'),
],
productionCredentials: [
string(variable: 'AWS_ACCESS_KEY_ID', credentialsId: 'production-terraform-aws-sponsorship-access-key'),
string(variable: 'AWS_SECRET_ACCESS_KEY', credentialsId:'production-terraform-aws-sponsorship-secret-key'),

file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-aws-sponsorship-backend-config'),
],
// TODO: generate a local report to be published
// publishReports: ['jenkins-infra-data-reports/aws-sponsorship.json'],
)
100 changes: 0 additions & 100 deletions packer-resources.tf

This file was deleted.

2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = "us-east-1"
region = "us-east-1"
# profile = var.aws_profile

default_tags {
Expand Down

0 comments on commit d8b6675

Please sign in to comment.