tech-assignment
v1.0.3
Published
My TECH project
Readme
Sample GitLab Project
.
├─ api/
├─ gitlab_version_api/
├─ requirements.txt
├─ manage.py
├─ Dockerfile
├─ helm_gitlab_version_api/
│ ├─ templates/
│ ├─ .values.yaml
│ ├─ .values-dev.yaml
│ └─ .Chart.yaml
├─ .gitlab-ci.yml
├─ terraform/
│ └─ iam-module/
└─ README.mdTerraform
This module creates the following IAM resources:
- An IAM role with no inline policies (can be assumed by principals inside the same AWS account).
- An IAM managed policy that allows
sts:AssumeRoleon the created role. - An IAM group with the policy attached.
- An IAM user that is a member of the group.
Usage
module "iam_role" {
source = "./iam-module"
region = var.region
role_name = var.role_name
group_name = var.group_name
user_name = var.user_name
policy_name = var.policy_name
account_id = var.account_id
}then if dev.tfvars File
terraform plan -var-file=dev.tfvarsAPI
Sample django project has been created and on top of that we called the gitlab version API.
Kubernetes
Helm templates defined with default values file as well as an example for values dev file
