<s> from troposphere import GetAtt , Join , Output , Template <EOL> from troposphere . s3 import Bucket , PublicRead , WebsiteConfiguration <EOL> t = Template ( ) <EOL> t . add_description ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> s3bucket = t . add_resource ( Bucket ( <EOL> "<STR_LIT>" , <EOL> AccessControl = PublicRead , <EOL> WebsiteConfiguration = WebsiteConfiguration ( <EOL> IndexDocument = "<STR_LIT>" , <EOL> ErrorDocument = "<STR_LIT>" <EOL> ) <EOL> ) ) <EOL> t . add_output ( [ <EOL> Output ( <EOL> "<STR_LIT>" , <EOL> Value = GetAtt ( s3bucket , "<STR_LIT>" ) , <EOL> Description = "<STR_LIT>" <EOL> ) , <EOL> Output ( <EOL> "<STR_LIT>" , <EOL> Value = Join ( "<STR_LIT>" , [ "<STR_LIT>" , GetAtt ( s3bucket , "<STR_LIT>" ) ] ) , <EOL> Description = "<STR_LIT>" <EOL> ) , <EOL> ] ) <EOL> print ( t . to_json ( ) ) </s>
