發表文章

目前顯示的是 2月 18, 2019的文章

How to create and assume an IAM role with terraform in the same plan

圖片
0 Is there a trick to both create and assume an IAM role in the same terraform plan? I am trying to use terraform to create EKS clusters by assuming a role that is created as part of the job. AWS assigns the identity that creates the cluster as the admin (system:master). I'd like to have a new role created and assigned for each cluster, but it seems to cause issues with Terraform's plan. The only part of the job that needs to assume the role is the cluster creation step. So far I've worked around the issue with resource targeting, which uses a separate step to target creation of the admin role before running the complete plan. However, it would be nice if I didn't need multiple steps to create the cluster. I'm somewhat new to Terraform, so I'm wondering if I'm overlooking someth...

File:WV-39.svg

圖片
Description WV-39.svg 600 mm by 600 mm (24 in by 24 in) West Virginia shield, made to the specifications of the West Virginia Division of Highway Sign Fabrication Details, September 2005 Edition (sign M1-5), available at [1]. Uses the Roadgeek 2005 fonts, available at [2]. (United States law does not permit the copyrighting of typeface designs, and the fonts are meant to be copies of a U.S. Government-produced work anyway.) Date 29 September 2006 Source Own work Author TwinsMetsFan Permission (Reusing this file) Public Domain Licensing Public domain Public domain false false This image of simple geometry is ineligible for copyright and therefore in the public domain , because it consists entirely of information that is common property and contains no original authorship. This page is only for reference, If you need detailed information, please check here

“Cannot Call SpreadsheetApp.getUi() from context” while trying to run manually

圖片
0 I am trying to access the UI object in Apps Script the same way I always do, inf fact the code I am using is re-used code that I have already used before and it worked fine, for some reason I am getting an error message when I try to run my script saying that I "Cannot Call the .getUI()" method from this context, but that usually presents when using a trigger, but I am not, I am just running it from the IDE. Does anyone know if there is an update or something that is messing with this? maybe I'm doing something wrong? If so I have pasted the code below function addProject() { var ui = SpreadsheetApp.getUi(); //var listDepartment = ss.getRangeByName("ref_departments").getValues().filter(String); // var projectSheet = ss.getSheetByName('Project Overview'); var name...