-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
Copy pathdisclaimers.rb
36 lines (33 loc) · 1.7 KB
/
disclaimers.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
require 'cli/ui'
require_relative('colorizer')
def billing
puts "\e[H\e[2J"
puts '========================== BILLING DISCLAIMER ============================='.yellow
puts 'Running this code will create actual resources that may incur charges.'
puts 'While the code attempts to destroy all resources it creates, unexpected '
puts 'errors may leave orphaned resources that must be manually deleted.'
puts ''
puts 'For more information on how AWS pricing works, see:'
puts ' https://aws.amazon.com/pricing/?aws-products-pricing'
puts ''
puts '=========================================================================='.yellow
reply = CLI::UI::Prompt.confirm('Do you understand the above BILLING DISCLAIMER and wish to continue?')
exit unless reply
end
def security
puts "\e[H\e[2J"
puts '========================== SECURITY DISCLAIMER ============================='.yellow
puts "Per Amazon Web Service's Shared Responsibility Model, you, the customer,"
puts 'assume a certain level of responsibility and should carefully consider'
puts 'the security impact of the services used in this demo, the integration'
puts 'of these services into your IT environment, and applicable laws and regulations.'
puts ''
puts 'For more information on the Shared Repsonsibility Model, please see: '
puts ' https://aws.amazon.com/compliance/shared-responsibility-model/'
puts ''
puts '=========================================================================='.yellow
reply = CLI::UI::Prompt.confirm('Do you understand the above SECURITY DISCLAIMER and wish to continue?')
exit unless reply
end