Skip to content

Commit

Permalink
Merge pull request #200 from sassoftware/staging
Browse files Browse the repository at this point in the history
5.6.1 - March 28, 2023
  • Loading branch information
dhoucgitter authored Mar 28, 2023
2 parents b647da7 + 42c5a97 commit cde9f3e
Show file tree
Hide file tree
Showing 27 changed files with 81 additions and 0 deletions.
3 changes: 3 additions & 0 deletions container-structure-test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

schemaVersion: "2.0.0"

fileExistenceTests:
Expand Down
4 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash

# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

set -e

# setup container user
Expand Down
3 changes: 3 additions & 0 deletions files/custom-data/additional_userdata.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

##
#
# For AWS this is a script 'snippet' that is injected into another script
Expand Down
3 changes: 3 additions & 0 deletions files/tools/iac_git_info.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# We need to return an error if things don't work
set -e

Expand Down
3 changes: 3 additions & 0 deletions files/tools/iac_tooling_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# We need to return an error if things don't work
set -e

Expand Down
2 changes: 2 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

locals {

Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## AWS-EKS
#
# Terraform Registry : https://registry.terraform.io/namespaces/terraform-aws-modules
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_autoscaling/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# Permissions based off the IAM Policy recommended by kubernetes/autoscaler
# https://github.com/kubernetes/autoscaler/blob/cluster-autoscaler-chart-9.25.0/cluster-autoscaler/cloudprovider/aws/README.md
data "aws_iam_policy_document" "worker_autoscaling" {
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_autoscaling/output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

output "autoscaler_account" {
value = module.iam_assumable_role_with_oidc.iam_role_arn
}
3 changes: 3 additions & 0 deletions modules/aws_autoscaling/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

variable "prefix" {
description = "A prefix used for all AWS Cloud resources created by this script"
type = string
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_ebs_csi/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

resource "aws_iam_policy" "ebs_csi" {
name_prefix = "${var.prefix}-ebs-csi-policy"
description = "EKS ebs csi policy for cluster ${var.cluster_name}"
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_ebs_csi/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

output "ebs_csi_account" {
value = module.iam_assumable_role_with_oidc.iam_role_arn
}
3 changes: 3 additions & 0 deletions modules/aws_ebs_csi/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

variable "prefix" {
description = "A prefix used for all AWS Cloud resources created by this script"
type = string
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vm/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# Reference: https://github.com/terraform-providers/terraform-provider-aws

# Hack for assigning disk in a vm based on an index value.
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vm/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

output "private_ip_address" {
value = aws_instance.vm.private_ip
}
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vm/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

variable "name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# This is customized based on - https://github.com/terraform-aws-modules/terraform-aws-vpc

locals {
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vpc/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

#vpc_id
output "vpc_id" {
description = "VPC id"
Expand Down
3 changes: 3 additions & 0 deletions modules/aws_vpc/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

variable "azs" {
description = "A list of availability zones names or ids in the region"
type = list(string)
Expand Down
3 changes: 3 additions & 0 deletions modules/kubeconfig/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

locals {
service_account_name = "${var.prefix}-cluster-admin-sa"
cluster_role_binding_name = "${var.prefix}-cluster-admin-crb"
Expand Down
3 changes: 3 additions & 0 deletions modules/kubeconfig/output.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

output "kube_config" {
value = local_file.kubeconfig.content
}
3 changes: 3 additions & 0 deletions modules/kubeconfig/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

variable "prefix" {
description = "A prefix used for all Google Cloud resources created by this script"
type = string
Expand Down
3 changes: 3 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

output "cluster_endpoint" {
description = "Endpoint for EKS control plane."
value = module.eks.cluster_endpoint
Expand Down
3 changes: 3 additions & 0 deletions security.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

data "aws_security_group" "sg" {
count = var.security_group_id == null ? 0 : 1
id = var.security_group_id
Expand Down
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## Global
variable "prefix" {
description = "A prefix used in the name for all cloud resources created by this script. The prefix string must start with a lowercase letter and contain only alphanumeric characters and hyphens or dashes (-), but cannot start or end with '-'."
Expand Down
3 changes: 3 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

terraform {
required_version = ">= 1.0.0"
required_providers {
Expand Down
3 changes: 3 additions & 0 deletions vms.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright © 2021-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

locals {
rwx_filestore_endpoint = (var.storage_type == "none"
? ""
Expand Down

0 comments on commit cde9f3e

Please sign in to comment.