Skip to content

Commit

Permalink
Move aws_endpoint_url under the cluster_vars heirarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
dipiazzg committed Nov 15, 2022
1 parent a4693cc commit 7e67153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EXAMPLE/cluster_defs/aws/cluster_vars__cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ cluster_vars:

# Some of the regions are not available for aws module boto.ec2. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path
# Adding the below to ec2 invocation fixes the issue
aws_endpoint_url: https://ec2.{{region}}.amazonaws.com
aws_endpoint_url: https://ec2.{{region}}.amazonaws.com
2 changes: 1 addition & 1 deletion create/tasks/create_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
volumes: "{{ item.auto_volumes | selectattr('src', 'undefined') | list | default([]) }}"
count_tag: { Name: "{{item.hostname}}" }
exact_count: 1
ec2_url: "{{ aws_endpoint_url | default(omit) }}"
ec2_url: "{{ cluster_vars.aws_endpoint_url | default(omit) }}"
vars:
_instance_tags:
Name: "{{item.hostname}}"
Expand Down

0 comments on commit 7e67153

Please sign in to comment.