Skip to content

Commit

Permalink
build: read AWS envs and pass to clusterctl
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Sep 20, 2023
1 parent c412b4a commit 3dfb9bd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion make/clusterctl.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# Copyright 2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

define AWS_CREDENTIALS
[default]
aws_access_key_id = $(AWS_ACCESS_KEY_ID)
aws_secret_access_key = $(AWS_SECRET_ACCESS_KEY)
aws_session_token = $(AWS_SESSION_TOKEN)
endef

AWS_B64ENCODED_CREDENTIALS ?= $(shell echo "$$AWS_CREDENTIALS" | base64 -w0)

.PHONY: clusterctl.init
clusterctl.init:
env CLUSTER_TOPOLOGY=true \
EXP_RUNTIME_SDK=true \
EXP_CLUSTER_RESOURCE_SET=true \
EXP_MACHINE_POOL=true \
AWS_B64ENCODED_CREDENTIALS= \
AWS_B64ENCODED_CREDENTIALS=$(AWS_B64ENCODED_CREDENTIALS) \
clusterctl init \
--kubeconfig=$(KIND_KUBECONFIG) \
--infrastructure docker,aws \
Expand Down

0 comments on commit 3dfb9bd

Please sign in to comment.