Re:Using a single AWS account is a serious risk
by ghufran_syed on Friday August 07, 2015 @09:54PM
(#10026032)
Any links to how to do this? My google-fu seems to be failing me. I'm assuming you somehow set things up so it automatically detects the page / content (based on the environment name or instance tags??) and changes the background?
[ Parent
| on HN ]
Re:Using a single AWS account is a serious risk
by patio11 on Friday August 07, 2015 @10:22PM
(#10026096)
Easy way to do this in e.g. Rails:
<body style="foo bar baz env-#{Rails.environment}">
Then use CSS like you would normally on body.env-production, body.env-development, etc.
Re:Using a single AWS account is a serious risk
by hobarrera on Saturday August 08, 2015 @10:20PM
(#10029302)
You meant class, not style. But great tip though:
<body class="foo bar baz env-#{Rails.environment}">
Re:Using a single AWS account is a serious risk
by mryan on Saturday August 08, 2015 @04:11AM
(#10026674)
One way to do this is to look at the "awsc-login-display-name-account" div, which contains your account ID. You can then alter the look of the page (perhaps making the top header bright red) depending on which account ID is in use.
Could make a nice Chrome extension...