Skip to content

Commit

Permalink
Cleanup dupe code
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL authored Jan 27, 2025
1 parent 7164c45 commit 8892da2
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 350 deletions.
12 changes: 1 addition & 11 deletions operations/_scripts/generate/generate_bitops_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,7 @@ bitops:
create_bitops_terraform_config aws true targets
fi
fi
#if [[ $(alpha_only "$AWS_ECR_REPO_CREATE") != true ]]; then
# if check_statefile aws ecr; then
# add_terraform_module ecr
# create_bitops_terraform_config ecr false
# fi
#else
# if [[ $(alpha_only "$AWS_ECR_REPO_CREATE") == true ]]; then
# add_terraform_module ecr
# create_bitops_terraform_config ecr true
# fi
#fi

# Ansible Code part

if [[ "$(alpha_only $ANSIBLE_SKIP)" != "true" ]] && [[ "$(alpha_only $AWS_EC2_INSTANCE_CREATE)" == "true" ]]; then
Expand Down
4 changes: 1 addition & 3 deletions operations/_scripts/generate/generate_provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ provider \"kubernetes\" {
}" >> "${GITHUB_ACTION_PATH}/operations/deployment/terraform/$1/bitovi_provider.tf"
}

generate_provider_aws aws ec2,r53,elb,efs,vpc,rds,aurora,ecs,db_proxy,redis,eks,ecr # Added eks here
#generate_provider_aws ecr ecr
#generate_provider_aws eks
generate_provider_aws aws ec2,r53,elb,efs,vpc,rds,aurora,ecs,db_proxy,redis,eks,ecr

echo "Done with generate_provider.sh"
173 changes: 0 additions & 173 deletions operations/deployment/terraform/ecr/aws_variables.tf

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

56 changes: 0 additions & 56 deletions operations/deployment/terraform/ecr/bitovi_main.tf

This file was deleted.

0 comments on commit 8892da2

Please sign in to comment.