I have a simple CloudFomration template to create a VPC:
vpc.yaml
---
Parameters:
CidrBlock:
Type: String
Description: The primary IPv4 CIDR block for the VPC
Resources:
VPC:
Type: "AWS::EC2::VPC"
Properties:
CidrBlock: !Ref "CidrBlock"
Tags:
- Key: "Name"
Value: "This is the main VPC"
In my Azure Devops pipleline I want to use AWS Stack create to create a VPC by using this CloudFormation template. All these problems were discussed in the AWS developer course.
Azure-pipeline.yaml
---
jobs:
- job: Job1
steps:
- task: CloudFormationCreateOrUpdateStack@1
inputs:
awsCredentials: 'My-cred'
regionName: 'ap-southeast-2'
stackName: 'Stack1'
templateSource: 'file'
templateFile: 'vpc.yaml'
templateParametersSource: inline
templateParameters: |
- ParameterKey: CidrBlock
ParameterValue: '10.10.10.0/24'
Obviousely, it'll work fine when I manually provide the value for the CidrBlock parameter when calling vpc.yaml template (like above ^). But what I want to do is using another file to store the parameters and values and pass that when running the vpc template. In other words, I have a params.yaml file in which I stored the required parameters to run vpc.yaml. How can I use that when running the vpc.yaml template as the parameter files?
params.yaml
---
parameters:
- name: CidrBlock
value: '10.10.10.0/24'
Like how I refer to the template file in azure-pipeline file above, is there a similar way with which I can refer to the params file instead of using templateParametersSource: inline ?
Replies
Machine learning is a variation on artificial intelligence (AI) technique that allows computers to acquire knowledge without manually programming them in their system. Machine learning algorithms are trained on data, and they use this data to make predictions or decisions.
machine learning classes in punemachine learning course in punemach...
Totally! Your questions are great and show a real desire to learn. It is inspiring to see someone actively searching for information and participating in lively discussions. This is an excellent opportunity to show off your knowledge and passion. You can gain a better understanding of your life and yourself by asking questions. Your curiosity will prove to be an invaluable asset in your journey. Never stop exploring and using your curiosity. Every question can lead you to amazing insights and discoveries.
AWS Classes in Pune