Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Cree múltiples cubos S3 que tengan las mismas propiedades con la formación en la nube

Estoy tratando de crear varios cubos S3 con las mismas propiedades. Pero no puedo crear varios cubos S3.

Encontré en http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html si tiene varios recursos del mismo tipo, puede declararlos juntos separándolos con comas

Pero no encontré ningún ejemplo y no estoy seguro de cómo hacerlo. Intenté depurar pero no obtuve el resultado. Por favor recomiende. A continuación se muestra mi archivo yaml:

 AWSTemplateFormatVersion: '2010-09-09' Resources: myS3Bucketlo: Type: AWS::S3::Bucket Properties: AccessControl: AuthenticatedRead Outputs: WebsiteURL: Value: !GetAtt myS3Bucketlo.WebsiteURL Description: URL for the website hosted on S3
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

En una plantilla de CloudFormation, cada recurso debe declararse por separado. Por lo tanto, incluso si sus cubos tienen propiedades idénticas, aún deben declararse individualmente:

 AWSTemplateFormatVersion: '2010-09-09' Resources: bucket1: Type: AWS::S3::Bucket Properties: AccessControl: AuthenticatedRead bucket2: Type: AWS::S3::Bucket Properties: AccessControl: AuthenticatedRead bucket3: Type: AWS::S3::Bucket Properties: AccessControl: AuthenticatedRead Outputs: WebsiteURL1: Value: !GetAtt bucket1.WebsiteURL Description: URL for the website 1 hosted on S3 WebsiteURL2: Value: !GetAtt bucket2.WebsiteURL Description: URL for the website 2 hosted on S3 WebsiteURL3: Value: !GetAtt bucket3.WebsiteURL Description: URL for the website 3 hosted on S3

Sin embargo,

Debe declarar cada recurso por separado; sin embargo, si tiene varios recursos del mismo tipo, puede declararlos juntos separándolos con comas.

La redacción de este texto implica que hay un atajo para evitar la duplicación, pero nunca he visto un ejemplo que funcione.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!