This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flags for our UI | |
apiVersion: core.openfeature.dev/v1beta1 | |
kind: FeatureFlag | |
metadata: | |
name: ui-flags | |
labels: | |
app: open-feature-demo | |
spec: | |
flagSpec: | |
flags: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "load_balancer_controller_irsa_role" { | |
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks" | |
role_name = "load-balancer-controller" | |
attach_load_balancer_controller_policy = true | |
oidc_providers = { | |
ex = { | |
provider_arn = module.eks.oidc_provider_arn | |
namespace_service_accounts = ["kube-system:aws-load-balancer-controller"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = local.region | |
} | |
provider "kubernetes" { | |
host = module.eks.cluster_endpoint | |
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) | |
token = data.aws_eks_cluster_auth.this.token | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "db" { | |
source = "terraform-aws-modules/rds/aws" | |
identifier = "demodb" | |
engine = "mysql" | |
engine_version = "5.7" | |
instance_class = "db.t3.micro" | |
allocated_storage = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = local.region | |
} | |
provider "kubernetes" { | |
host = module.eks.cluster_endpoint | |
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) | |
token = data.aws_eks_cluster_auth.this.token | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 5.0.0" | |
} | |
} | |
required_version = ">= 1.2.0" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 5.0.0" | |
} | |
} | |
required_version = ">= 1.2.0" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
| |
#Install a LAMP stack | |
dnf install -y httpd wget php-fpm php-mysqli php-json php php-devel | |
dnf install -y mariadb105-server | |
dnf install -y httpd php-mbstring | |
| |
#Start the web server | |
chkconfig httpd on | |
systemctl start httpd |