Module: Stax::Ecr
- Defined in:
- lib/stax/mixin/ecr.rb
Class Method Summary collapse
Instance Method Summary collapse
- #ecr_registry ⇒ Object
- #ecr_repositories ⇒ Object
-
#ecr_repository_name ⇒ Object
override to set an explicit repo name.
- #ecr_repository_names ⇒ Object
Class Method Details
Instance Method Details
#ecr_registry ⇒ Object
11 12 13 |
# File 'lib/stax/mixin/ecr.rb', line 11 def ecr_registry @_ecr_registry ||= "#{aws_account_id}.dkr.ecr.#{aws_region}.amazonaws.com" end |
#ecr_repositories ⇒ Object
15 16 17 |
# File 'lib/stax/mixin/ecr.rb', line 15 def ecr_repositories @_ecr_repositories ||= Aws::Cfn.resources_by_type(stack_name, 'AWS::ECR::Repository') end |
#ecr_repository_name ⇒ Object
override to set an explicit repo name
24 25 26 |
# File 'lib/stax/mixin/ecr.rb', line 24 def ecr_repository_name @_ecr_repository_name ||= (ecr_repository_names&.first || app_name) end |
#ecr_repository_names ⇒ Object
19 20 21 |
# File 'lib/stax/mixin/ecr.rb', line 19 def ecr_repository_names @_ecr_repository_names ||= ecr_repositories.map(&:physical_resource_id) end |